|
| 1 | +name: build |
| 2 | + |
| 3 | +on: [push, pull_request, workflow_dispatch] |
| 4 | + |
| 5 | +jobs: |
| 6 | + build: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + |
| 9 | + strategy: |
| 10 | + matrix: |
| 11 | + board: ["Arduino Uno", "Arduino Nano", "Arduino Leonardo", "Arduino Mega 2560"] |
| 12 | + include: |
| 13 | + - board: "Arduino Uno" # board name, human-readable (matching board array above) |
| 14 | + platform: "arduino:avr" # board platform, to be installed by the CLI |
| 15 | + fqbn: "arduino:avr:uno" # fully qualified board name |
| 16 | + - board: "Arduino Nano" |
| 17 | + platform: "arduino:avr" |
| 18 | + fqbn: "arduino:avr:nano:cpu=atmega328" |
| 19 | + - board: "Arduino Leonardo" |
| 20 | + platform: "arduino:avr" |
| 21 | + fqbn: "arduino:avr:leonardo" |
| 22 | + - board: "Arduino Mega 2560" |
| 23 | + platform: "arduino:avr" |
| 24 | + fqbn: "arduino:avr:mega:cpu=atmega2560" |
| 25 | + |
| 26 | + steps: |
| 27 | + - name: Checkout |
| 28 | + uses: actions/checkout@v2 |
| 29 | + |
| 30 | + - name: Setup Arduino CLI |
| 31 | + uses: arduino/setup-arduino-cli@v1.1.1 |
| 32 | + |
| 33 | + - name: Install Board Platform |
| 34 | + run: | |
| 35 | + arduino-cli core update-index |
| 36 | + arduino-cli core install ${{ matrix.platform }} |
| 37 | +
|
| 38 | + - name: Install FastLED Library |
| 39 | + run: arduino-cli lib install FastLED |
| 40 | + |
| 41 | + - name: Compile Sketch |
| 42 | + run: arduino-cli compile --fqbn ${{ matrix.fqbn }} Arduino/LEDstream_FastLED/LEDstream_FastLED.ino |
0 commit comments