From 4f44d8aa36d480da4bb6799d29eb192aa6629d8b Mon Sep 17 00:00:00 2001 From: Katherine Whitlock Date: Sun, 18 Feb 2024 13:57:13 -0500 Subject: [PATCH] explicitly point to compiler (for windows) --- .github/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 876d54a..9d264ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,8 +35,13 @@ jobs: env: ${{ matrix.compiler == 'llvm' }} if: ${{ matrix.compiler == 'llvm' }} - - name: Configure - run: cmake -Bbuild -DBUILD_TESTS=YES + - name: Configure for native compiler + run: cmake -B build -DBUILD_TESTS=YES + if: ${{ matrix.compiler == 'native'}} + + - name: Configure for non-native compiler + run: cmake -B build -DBUILD_TESTS=YES -DCMAKE_C_COMPILER=${{ env.CC }} -DCMAKE_CXX_COMPILER=${{ env.CXX }} + if: ${{ matrix.compiler != 'native'}} - name: Build run: cmake --build build --config Release