diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 876d54a..47c3547 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 -G Ninja -DBUILD_TESTS=YES -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" + if: ${{ matrix.compiler != 'native'}} - name: Build run: cmake --build build --config Release