1 parent 8a737ec commit e18d057Copy full SHA for e18d057
1 file changed
.github/workflows/compile.yml
@@ -0,0 +1,34 @@
1
+name: Arduino CI
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
9
+ strategy:
10
+ matrix:
11
+ board: ["arduino:avr:uno", "arduino:avr:mega"]
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Install Arduino CLI
18
+ uses: arduino/setup-arduino-cli@v2
19
+ with:
20
+ version: "1.x"
21
22
+ - name: Install Platform and Dependencies
23
+ run: |
24
+ arduino-cli core update-index
25
+ arduino-cli core install arduino:avr
26
+ # Install AUnit for testing
27
+ arduino-cli lib install AUnit
28
29
+ - name: Compile Tests
30
31
+ # We tell the CLI to include the root directory as a library
32
+ arduino-cli compile --fqbn ${{ matrix.board }} \
33
+ --library . \
34
+ tests/ViewUtilsTests/ViewUtilsTests.ino
0 commit comments