From 1940a986592a5daaa0fd4f018ad4e07cd61ecd5a Mon Sep 17 00:00:00 2001 From: Oliver Schonrock Date: Wed, 18 Dec 2024 07:25:12 +0000 Subject: [PATCH] each "step" in github action file gets executed in new shell so we need to set CC and CXX in same step as cmake configure --- .github/workflows/ubuntu.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 5b1ea60..65154b3 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -31,7 +31,7 @@ jobs: mxxruexternals cd ../.. - - name: select compiler + - name: select compiler and configure with cmake run: | if [ "${{ matrix.compiler }}" == "gcc" ]; then export CC=gcc @@ -40,9 +40,6 @@ jobs: export CC=clang export CXX=clang++ fi - - - name: configure with cmake - run: | cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=debug -DNOPCH=ON -DBINFUSE_TEST=OFF -DHIBP_TEST=ON - name: build with cmake