Skip to content

Commit 864643c

Browse files
authored
feat: create ardunio builds
1 parent 3e6dc98 commit 864643c

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/arduino.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Compile Arduino
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.ino'
7+
pull_request:
8+
paths:
9+
- '**.ino'
10+
11+
jobs:
12+
compile:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
board: [arduino:avr:uno]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Arduino CLI
24+
uses: arduino/setup-arduino-cli@v1
25+
26+
- name: Install Board Platform
27+
run: arduino-cli core install arduino:avr
28+
29+
- name: Compile Sketches
30+
run: |
31+
for sketch in $(find . -name '*.ino'); do
32+
echo "Compiling $sketch"
33+
arduino-cli compile --fqbn ${{ matrix.board }} $sketch
34+
done

0 commit comments

Comments
 (0)