File tree Expand file tree Collapse file tree 3 files changed +15
-17
lines changed
Expand file tree Collapse file tree 3 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 1+ ./config.library_root+'examples/BatteryPoweredSensor/BatteryPoweredSensor.ino
2+ ./config.library_root+'examples/GatewayESP8266/GatewayESP8266.ino
3+ ./config.library_root+'examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino
4+ ./config.library_root+'examples/GatewayESP8266SecureMQTTClient/GatewayESP8266SecureMQTTClient.ino
5+ ./config.library_root+'examples/GatewayESP8266OTA/GatewayESP8266OTA.ino
6+ ./config.library_root+'examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino
7+ ./config.library_root+'examples/GatewayESP32/GatewayESP32.ino
8+ ./config.library_root+'examples/GatewayESP32OTA/GatewayESP32OTA.ino
9+ ./config.library_root+'examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino
10+ ./config.library_root+'examples/GatewaySerialRS485/GatewaySerialRS485.ino
11+ ./config.library_root+'examples/MotionSensorRS485/MotionSensorRS485.ino
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ exit_result=0
23
34# Fully Qualified Board Name (FQBN) of the board to compile for
45FQBN=" $1 " # "arduino:avr:uno"
@@ -16,33 +17,19 @@ if [ -f "$EXCLUDES" ]; then
1617 grep -vE ' ^\s*#|^\s*$' " $EXCLUDES " > " $BLACKLIST_FILE "
1718fi
1819
19- # ### Debugging output
20- echo " Excluded files:"
21- cat " $BLACKLIST_FILE "
22- echo " <END>"
23-
2420# Find all .ino files and compile each one, excluding those in the blacklist
25- exit_result=0
2621while read sketch; do
2722 if ! grep -Fxq " $sketch " " $BLACKLIST_FILE " ; then
2823 echo " Compiling $sketch "
2924 arduino-cli compile --fqbn " $FQBN " " $sketch " --warnings more
3025 compile_result=$?
31- echo " compile_result: $compile_result "
3226 if [ $compile_result -ne 0 ]; then
33- echo " Compilation failed for $sketch "
3427 exit_result=1
3528 fi
36- echo " result: $exit_result "
3729 else
3830 echo " Skipping $sketch (blacklisted)"
3931 fi
4032done < <( find " $SKETCHES " -name " *.ino" )
4133
4234# Exit with error state
43- echo " result: $exit_result "
4435exit $exit_result
45-
46- # if [ $result -ne 0 ]; then
47- # exit 1
48- # fi
Original file line number Diff line number Diff line change @@ -282,17 +282,17 @@ jobs:
282282 EXCLUDES="./.github/workflows/.ci_scripts/Arduino-AVR-excludes"
283283 ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
284284
285- # MySensors AVR MySensorsGW
285+ # MySensors SAMD MySensorsGW
286286 - name : Compile MySensorsGW (tests)
287287 run : |
288288 FQBN="MySensors:samd:mysensors_gw_native"
289289 SKETCHES="./tests"
290- EXCLUDES="./.github/workflows/.ci_scripts/Arduino-AVR -excludes"
290+ EXCLUDES="./.github/workflows/.ci_scripts/MySensors-SAMD -excludes"
291291 ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
292292
293293 - name : Compile MySensorsGW (examples)
294294 run : |
295295 FQBN="MySensors:samd:mysensors_gw_native"
296296 SKETCHES="./examples"
297- EXCLUDES="./.github/workflows/.ci_scripts/Arduino-AVR -excludes"
297+ EXCLUDES="./.github/workflows/.ci_scripts/MySensors-SAMD -excludes"
298298 ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
You can’t perform that action at this time.
0 commit comments