From ad4eeaf859c447894e83c855bcff63bb70f58be4 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Wed, 25 Mar 2026 11:03:47 +0100 Subject: [PATCH] ci: avoid modifying GOAL in 03_test_script.sh The modification caused "codesign --verify" to be silently skipped. Introduce BUILD_TARGETS for the cmake target list so GOAL remains unmodified throughout the script. --- ci/test/03_test_script.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh index 293a804f967..d00005c0450 100755 --- a/ci/test/03_test_script.sh +++ b/ci/test/03_test_script.sh @@ -123,15 +123,16 @@ cmake -S "$BASE_ROOT_DIR" -B "$BASE_BUILD_DIR" "${CMAKE_ARGS[@]}" || ( false ) +BUILD_TARGETS="${GOAL}" if [[ "${GOAL}" != all && "${GOAL}" != *codegen* ]]; then - GOAL="all ${GOAL}" + BUILD_TARGETS="all ${GOAL}" fi # shellcheck disable=SC2086 -cmake --build "${BASE_BUILD_DIR}" "$MAKEJOBS" --target $GOAL || ( +cmake --build "${BASE_BUILD_DIR}" "$MAKEJOBS" --target $BUILD_TARGETS || ( echo "Build failure. Verbose build follows." # shellcheck disable=SC2086 - cmake --build "${BASE_BUILD_DIR}" -j1 --target $GOAL --verbose + cmake --build "${BASE_BUILD_DIR}" -j1 --target $BUILD_TARGETS --verbose false )