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