From 3656b32ad8b9a13a3178a7e8fe4a70fabc7a27cb Mon Sep 17 00:00:00 2001 From: Virtual Maker <56232456+virtual-maker@users.noreply.github.com> Date: Wed, 1 Jan 2025 22:02:49 +0100 Subject: [PATCH] Further fixes and debug messages --- .github/workflows/.ci_scripts/compile-arduino-sketches.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/.ci_scripts/compile-arduino-sketches.sh b/.github/workflows/.ci_scripts/compile-arduino-sketches.sh index 0a5166390..1af1bbedb 100644 --- a/.github/workflows/.ci_scripts/compile-arduino-sketches.sh +++ b/.github/workflows/.ci_scripts/compile-arduino-sketches.sh @@ -23,7 +23,7 @@ echo "" # Find all .ino files and compile each one, excluding those in the blacklist exit_result=0 -find "$SKETCHES" -name "*.ino" | while read sketch; do +while read sketch; do if ! grep -Fxq "$sketch" "$BLACKLIST_FILE"; then echo "Compiling $sketch" arduino-cli compile --fqbn "$FQBN" "$sketch" --warnings more @@ -34,11 +34,10 @@ find "$SKETCHES" -name "*.ino" | while read sketch; do exit_result=1 fi echo "result: $exit_result" - else echo "Skipping $sketch (blacklisted)" fi -done +done < <(find "$SKETCHES" -name "*.ino") # Exit with error state echo "result: $exit_result"