Skip to content

Commit

Permalink
Further fixes and debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-maker committed Jan 1, 2025
1 parent 55c9390 commit 8ea3e9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/.ci_scripts/compile-arduino-sketches.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
result=0

# Fully Qualified Board Name (FQBN) of the board to compile for
FQBN="$1" # "arduino:avr:uno"
Expand All @@ -23,6 +22,7 @@ cat "$BLACKLIST_FILE"
echo "<END>"

# Find all .ino files and compile each one, excluding those in the blacklist
exit_result=0
find "$SKETCHES" -name "*.ino" | while read sketch; do
if ! grep -Fxq "$sketch" "$BLACKLIST_FILE"; then
echo "Compiling $sketch"
Expand All @@ -31,18 +31,18 @@ find "$SKETCHES" -name "*.ino" | while read sketch; do
echo "compile_result: $compile_result"
if [ $compile_result -ne 0 ]; then
echo "Compilation failed for $sketch"
result=1
exit_result=1
fi
echo "result: $result"
echo "result: exit_result"

else
echo "Skipping $sketch (blacklisted)"
fi
done

# Exit with error state
echo "result: $result"
exit $result
echo "result: $exit_result"
exit $exit_result

#if [ $result -ne 0 ]; then
# exit 1
Expand Down

0 comments on commit 8ea3e9c

Please sign in to comment.