From 64874881c8c4c53a2044911f2009d572b542875c Mon Sep 17 00:00:00 2001 From: Kai-Uwe Hermann Date: Tue, 5 Nov 2024 09:00:03 +0100 Subject: [PATCH] Check return codes in compile script Signed-off-by: Kai-Uwe Hermann --- .ci/build-kit/scripts/compile.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.ci/build-kit/scripts/compile.sh b/.ci/build-kit/scripts/compile.sh index c6ba8590f..2dd8870d5 100755 --- a/.ci/build-kit/scripts/compile.sh +++ b/.ci/build-kit/scripts/compile.sh @@ -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