Skip to content

Commit 842510c

Browse files
committed
Configure with CC/CXX on non-native builds
1 parent c4502de commit 842510c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ jobs:
3838
echo "CXX=clang++" >> $GITHUB_ENV
3939
if: ${{ matrix.os == 'windows-latest' && matrix.compiler != 'native'}}
4040

41-
- name: Configure
41+
- name: Configure with default compiler
4242
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES
43+
if: ${{ matrix.compiler == 'native'}}
44+
45+
- name: Configure with specific compiler
46+
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX"
47+
if: ${{ matrix.compiler != 'native'}}
4348

4449
- name: Build
4550
run: cmake --build build --config Release

0 commit comments

Comments
 (0)