File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments