forked from mysensors/MySensors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build process to compile all example sketches
for Arduino UNO
- Loading branch information
1 parent
87f608a
commit 513d4ca
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
examples/GatewayESP8266/GatewayESP8266.ino | ||
examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino | ||
examples/GatewayESP8266SecureMQTTClient/GatewayESP8266SecureMQTTClient.ino | ||
examples/GatewayESP8266OTA/GatewayESP8266OTA.ino | ||
examples/GatewayESP32/GatewayESP32.ino | ||
examples/GatewayESP32OTA/GatewayESP32OTA.ino | ||
examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino | ||
examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino |
18 changes: 18 additions & 0 deletions
18
.github/workflows/.ci_scripts/compile-arduino-AVR-UNO-sketches.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Read the blacklist file into an array | ||
if [ -f Arduino-AVR-excludes ]; then | ||
mapfile -t excludes < Arduino-AVR-UNO-excludes | ||
else | ||
excludes=() | ||
fi | ||
|
||
# Find all .ino files and compile each one, excluding those in the blacklist | ||
find ./examples -name "*.ino" | while read sketch; do | ||
if [[ ! " ${excludes[@]} " =~ " ${sketch} " ]]; then | ||
echo "Compiling $sketch" | ||
arduino-cli compile --fqbn arduino:avr:uno "$sketch" | ||
else | ||
echo "Skipping $sketch (blacklisted)" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters