From a910fc0387670bcca1ff8512d34481d666426b01 Mon Sep 17 00:00:00 2001 From: gindibay Date: Wed, 12 Jul 2023 22:17:07 +0300 Subject: [PATCH] Adds error check for make --- .github/workflows/packaging-test-pipelines.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/packaging-test-pipelines.yml b/.github/workflows/packaging-test-pipelines.yml index a9a38bfbd..16a9d2f2b 100644 --- a/.github/workflows/packaging-test-pipelines.yml +++ b/.github/workflows/packaging-test-pipelines.yml @@ -78,7 +78,15 @@ jobs: set -ex git config --global --add safe.directory /__w/citus/citus make CFLAGS="-Wno-missing-braces" -sj$(cat /proc/cpuinfo | grep "core id" | wc -l) 2>&1 | tee -a output.log - exit 1 + + # Check the exit code of the make command + make_exit_code=${PIPESTATUS[0]} + + # If the make command returned a non-zero exit code, exit with the same code + if [[ $make_exit_code -ne 0 ]]; then + echo "make command failed with exit code $make_exit_code" + exit $make_exit_code + fi - name: Make install run: |