Skip to content

Commit 6fd7c07

Browse files
committed
fix(compilation): Make errors appear on CI fail
1 parent dd8c7a7 commit 6fd7c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/sketch_utils.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
221221
--build-cache-path "$ARDUINO_CACHE_DIR" \
222222
--build-path "$build_dir" \
223223
$xtra_opts "${sketchdir}" \
224-
> $output_file
224+
2>&1 | tee $output_file
225225

226-
exit_status=$?
226+
exit_status=${PIPESTATUS[0]}
227227
if [ $exit_status -ne 0 ]; then
228228
echo "ERROR: Compilation failed with error code $exit_status"
229229
exit $exit_status

0 commit comments

Comments
 (0)