-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.24 KB
/
ArduinoLint.yml
File metadata and controls
48 lines (40 loc) · 1.24 KB
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
43
44
45
46
47
48
name: Arduino Lint
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ArduinoLint:
runs-on: ubuntu-latest
strategy:
fail-fast: false # all jobs should run
matrix:
board:
- fqbn: arduino:avr:nano
platform: arduino:avr
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Arduino CLI
run: |
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.34.0
echo "./bin" >> $GITHUB_PATH
- name: Install board
run: |
arduino-cli config init
arduino-cli config set library.enable_unsafe_install true
if [ -n "${{ matrix.board.url }}" ]; then
arduino-cli config add board_manager.additional_urls ${{ matrix.board.url }}
fi
arduino-cli core update-index
arduino-cli core install ${{ matrix.board.platform }}
# - name: Install libraries
# run: |
- name: Run test
run: arduino-cli compile --library . -b ${{ matrix.board.fqbn }} ./test/ArduinoLint/ArduinoLint.ino