From d0c321b43a26596ff2a47f4d8ca808816f5a3b7e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 25 Jul 2022 16:30:01 +0930 Subject: [PATCH] CI: fix CI scripts to fail if a command fails. If compilation failed, we didn't stop (though except for fuzzing, we would fail when we try to run the tests). Also use make -s instead of redirecting make ooutput. Signed-off-by: Rusty Russell --- .github/scripts/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 7ac1279df..17e4c90fd 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -21,6 +21,9 @@ export VALGRIND=${VALGRIND:-0} export FUZZING=${FUZZING:-0} export LIGHTNINGD_POSTGRES_NO_VACUUM=1 +# Fail if any commands fail. +set -e + pip3 install --user poetry poetry config virtualenvs.create false --local poetry install @@ -89,7 +92,7 @@ then ./configure CC="$TARGET_HOST-gcc" --enable-static - make -j32 CC="$TARGET_HOST-gcc" > /dev/null + make -s -j32 CC="$TARGET_HOST-gcc" else eatmydata make -j32 # shellcheck disable=SC2086