Skip to content

Commit

Permalink
fix(compilation): Make errors appear on CI fail
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Oct 16, 2024
1 parent dd8c7a7 commit 6fd7c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/sketch_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
--build-cache-path "$ARDUINO_CACHE_DIR" \
--build-path "$build_dir" \
$xtra_opts "${sketchdir}" \
> $output_file
2>&1 | tee $output_file

exit_status=$?
exit_status=${PIPESTATUS[0]}
if [ $exit_status -ne 0 ]; then
echo "ERROR: Compilation failed with error code $exit_status"
exit $exit_status
Expand Down

0 comments on commit 6fd7c07

Please sign in to comment.