Skip to content

Commit 3c8fcc2

Browse files
committed
ci: keep default MSVC generator on Windows to prevent ABI segfaults
1 parent bacf7e5 commit 3c8fcc2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/cpp-ci.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
submodules: recursive
3333

3434
- name: Install Ninja
35+
if: runner.os != 'Windows'
3536
run: pip install ninja
3637

3738
- name: Setup ccache
@@ -40,7 +41,12 @@ jobs:
4041
key: ${{ matrix.os }}-ccache-${{ github.ref_name }}-${{ github.sha }}
4142
restore-keys: ${{ matrix.os }}-ccache-${{ github.ref_name }}-
4243

43-
- name: Configure CMake
44+
- name: Configure CMake (Windows)
45+
if: runner.os == 'Windows'
46+
run: cmake -B build -S cpp -DFORCE_AVX2=ON -DENABLE_BENCHMARKS=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
47+
48+
- name: Configure CMake (Non-Windows)
49+
if: runner.os != 'Windows'
4450
run: cmake -B build -S cpp -G Ninja -DCMAKE_BUILD_TYPE=Release -DFORCE_AVX2=ON -DENABLE_BENCHMARKS=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
4551

4652
- name: Build

0 commit comments

Comments
 (0)