Skip to content

Commit

Permalink
Check return codes in compile script
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Nov 5, 2024
1 parent c86087e commit 6487488
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .ci/build-kit/scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ cmake \
-DCMAKE_INSTALL_PREFIX="$EXT_MOUNT/dist" \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON

ninja -j$(nproc) -C build
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Configuring failed with return code $retVal"
exit $retVal
fi

ninja -C "$EXT_MOUNT/build"
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Compiling failed with return code $retVal"
exit $retVal
fi

0 comments on commit 6487488

Please sign in to comment.