From 9da42114110c3a894813fa98195f371b8f8a9486 Mon Sep 17 00:00:00 2001 From: Dominik Berner Date: Tue, 11 Feb 2025 22:01:18 +0100 Subject: [PATCH] Force usage of bash --- .github/workflows/ci.yml | 1 + test/compilation-tests.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4bc91e42..0fa06bf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,6 +117,7 @@ jobs: if: runner.os == 'Linux' || runner.os == 'macOs' run: | ./test/compilation-tests.sh + shell: bash version-consistency-check: if: github.event.action == 'published' || github.ref != 'refs/heads/main' diff --git a/test/compilation-tests.sh b/test/compilation-tests.sh index 285773c2..237261a6 100755 --- a/test/compilation-tests.sh +++ b/test/compilation-tests.sh @@ -7,7 +7,6 @@ INSTALL_PATH=$(realpath ~/SI-install) buildSingleTarget() { - set -x if [ "${2}" == "DEFAULTBUILD" ]; then cmake ${ROOT_DIR}/test/src/compilation_tests/ -B${BUILD_DIR} -DCMAKE_PREFIX_PATH=${BUILD_DIR} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} -DCMAKE_BUILD_TYPE=Release -G Ninja > /dev/null assertEquals "Configuration for defaultbuild successful" 0 $? ${3} @@ -25,11 +24,12 @@ buildSingleTarget() else assertNotEquals "Building fails" 0 $RESULT fi - set +x + } oneTimeSetUp(){ + echo "Setting up and installing SI" BUILD_DIR=$(mktemp -d) conan install . --output-folder=${BUILD_DIR} --build=missing --settings=build_type=Release 2>&1> /dev/null