Expected::operator bool を明示的な型変換とし、coutへ出力したときに誤ってbool型として出力されないよう変更 #792
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Arduino Lint | |
# | |
# Copyright (c) 2022-2024 udonrobo | |
# | |
name: Arduino Lint | |
on: | |
push: | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ArduinoLint: | |
name: ${{ matrix.board.fqbn }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- fqbn: arduino:avr:nano | |
platform: arduino:avr | |
- fqbn: arduino:avr:uno | |
platform: arduino:avr | |
- fqbn: arduino:avr:unomini | |
platform: arduino:avr | |
- fqbn: teensy:avr:teensy35 | |
platform: teensy:avr | |
url: https://www.pjrc.com/teensy/td_156/package_teensy_index.json | |
- fqbn: teensy:avr:teensy36 | |
platform: teensy:avr | |
url: https://www.pjrc.com/teensy/td_156/package_teensy_index.json | |
- fqbn: teensy:avr:teensy40 | |
platform: teensy:avr | |
url: https://www.pjrc.com/teensy/td_156/package_teensy_index.json | |
- fqbn: teensy:avr:teensy41 | |
platform: teensy:avr | |
url: https://www.pjrc.com/teensy/td_156/package_teensy_index.json | |
- fqbn: rp2040:rp2040:rpipico | |
platform: rp2040:rp2040 | |
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | |
- fqbn: rp2040:rp2040:rpipicow | |
platform: rp2040:rp2040 | |
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | |
- fqbn: rp2040:rp2040:seeed_xiao_rp2040 | |
platform: rp2040:rp2040 | |
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Arduino CLI | |
run: | | |
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.34.0 | |
echo "./bin" >> $GITHUB_PATH | |
- name: Install board | |
run: | | |
arduino-cli config init | |
arduino-cli config set library.enable_unsafe_install true | |
if [ -n "${{ matrix.board.url }}" ]; then | |
arduino-cli config add board_manager.additional_urls ${{ matrix.board.url }} | |
fi | |
arduino-cli core update-index | |
arduino-cli core install ${{ matrix.board.platform }} | |
- name: Install libraries | |
run: | | |
arduino-cli lib install --git-url https://github.com/udonrobo/UdonArduinoSTL.git | |
arduino-cli lib install --git-url https://github.com/adafruit/Adafruit_BusIO.git | |
arduino-cli lib install --git-url https://github.com/adafruit/Adafruit_Sensor.git | |
arduino-cli lib install --git-url https://github.com/adafruit/Adafruit_BNO055.git | |
- name: Run test | |
run: arduino-cli compile --library . -b ${{ matrix.board.fqbn }} ./test/ArduinoLint/ArduinoLint.ino |