Skip to content

Commit 9f35e66

Browse files
committed
Update ctest.yml
1 parent 46d3d39 commit 9f35e66

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/ctest.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,28 @@ jobs:
1818
include:
1919
- name: Linux GCC
2020
os: ubuntu-latest
21-
c_compiler: gcc
21+
cc: gcc
2222

2323
- name: Linux Clang
2424
os: ubuntu-latest
25-
c_compiler: clang
25+
cc: clang
2626

2727
- name: Windows MSVC
28-
on: windows-latest
29-
cc: cl
28+
os: windows-latest
3029

3130
steps:
3231
- uses: actions/checkout@v6
3332

34-
- name: Configure CMake
33+
- name: Configure CMake (Unix)
34+
if: runner.os != 'Windows'
3535
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON
3636
env:
3737
CC: ${{ matrix.cc }}
3838

39+
- name: Configure CMake (Windows)
40+
if: runner.os == 'Windows'
41+
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -G "Visual Studio 17 2022"
42+
3943
- name: Build
4044
run: cmake --build build --config Release
4145

0 commit comments

Comments
 (0)