Skip to content

Commit 30c7c26

Browse files
committed
add ci workflow to check sketches deps
1 parent 60f1504 commit 30c7c26

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check sketches dependencies
2+
on:
3+
pull_request:
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
check-sketches-deps:
9+
runs-on: ubuntu-latest
10+
env:
11+
ARDUINO_CLI_VERSION: 'latest'
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Arduino CLI
17+
run: |
18+
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s -- -b $HOME/bin $ARDUINO_CLI_VERSION
19+
echo "$HOME/bin" >> $GITHUB_PATH
20+
21+
- name: Update Arduino cores and libraries and install Zephyr core
22+
run: |
23+
arduino-cli update
24+
arduino-cli core install arduino:zephyr
25+
26+
- name: Verify sketches
27+
run: |
28+
SKETCHES=$(find . -name "*.ino")
29+
for SKETCH in $SKETCHES; do
30+
echo "Verifying $SKETCH"
31+
arduino-cli compile --fqbn arduino:zephyr:unoq "$SKETCH"
32+
done

0 commit comments

Comments
 (0)