We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e6dc98 commit 864643cCopy full SHA for 864643c
1 file changed
.github/workflows/arduino.yml
@@ -0,0 +1,34 @@
1
+name: Compile Arduino
2
+
3
+on:
4
+ push:
5
+ paths:
6
+ - '**.ino'
7
+ pull_request:
8
9
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