-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 832 Bytes
/
Copy pathcompile.yml
File metadata and controls
34 lines (27 loc) · 832 Bytes
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
name: Arduino CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
board: ["arduino:avr:uno", "arduino:avr:mega"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v2
with:
version: "1.x"
- name: Install Platform and Dependencies
run: |
arduino-cli core update-index
arduino-cli core install arduino:avr
# Install AUnit for testing
arduino-cli lib install AUnit
- name: Compile Tests
run: |
# We tell the CLI to include the root directory as a library
arduino-cli compile --fqbn ${{ matrix.board }} \
--library . \
tests/ViewTests/ViewTests.ino