Skip to content

Commit b39eebf

Browse files
committed
Exit if compilation of a single sketch fails
1 parent bb3310a commit b39eebf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/compile_examples.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ BOARD_CONFIG="DxCore:megaavr:avrdb:appspm=no,chip=avr128db48,clock=24internal,bo
66
for d in examples/*/ ; do
77
echo "Compiling $d...";
88
arduino-cli compile -b $BOARD_CONFIG --libraries=".." "$d" --output-dir "builds/mini/$(basename $d)";
9+
10+
# Check the error code
11+
if [ $? == 1 ]; then
12+
exit 1
13+
fi
914
done

0 commit comments

Comments
 (0)