Skip to content

Commit f012a13

Browse files
committed
CI-windows.yml: added windows-2025-vs2026 / removed explicit CMake generator
1 parent 1d0c780 commit f012a13

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/CI-windows.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,22 @@ permissions:
1212
defaults:
1313
run:
1414
shell: cmd
15-
15+
1616
jobs:
1717

1818
build:
1919
strategy:
2020
matrix:
2121
os: [windows-2022, windows-2025, windows-11-arm]
2222
config: [Release, Debug]
23+
sln: [sln, slnx]
24+
exclude:
25+
- os: windows-2022
26+
sln: slnx
27+
- os: windows-2025-vs2026
28+
sln: sln
29+
- os: windows-11-arm
30+
sln: slnx
2331
fail-fast: false
2432

2533
runs-on: ${{ matrix.os }}
@@ -45,12 +53,12 @@ jobs:
4553
4654
- name: Run CMake
4755
run: |
48-
cmake -G "Visual Studio 17 2022" -A x64 -Werror=dev --warn-uninitialized -DCMAKE_COMPILE_WARNING_AS_ERROR=On . || exit /b !errorlevel!
56+
cmake -A x64 -Werror=dev --warn-uninitialized -DCMAKE_COMPILE_WARNING_AS_ERROR=On . || exit /b !errorlevel!
4957
5058
- name: Build
5159
run: |
52-
msbuild -m simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
53-
60+
msbuild -m simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
61+
5462
- name: Test
5563
run: |
5664
.\${{ matrix.config }}\testrunner.exe || exit /b !errorlevel!
@@ -66,17 +74,17 @@ jobs:
6674
6775
- name: Run CMake (c++17)
6876
run: |
69-
cmake -S . -B build.cxx17 -G "Visual Studio 17 2022" -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=17 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
77+
cmake -S . -B build.cxx17 -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=17 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
7078
7179
- name: Build (c++17)
7280
run: |
73-
msbuild -m build.cxx17\simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
81+
msbuild -m build.cxx17\simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
7482
7583
- name: Run CMake (c++20)
7684
run: |
77-
cmake -S . -B build.cxx20 -G "Visual Studio 17 2022" -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=20 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
85+
cmake -S . -B build.cxx20 -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=20 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
7886
7987
- name: Build (c++20)
8088
run: |
81-
msbuild -m build.cxx20\simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
89+
msbuild -m build.cxx20\simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
8290

0 commit comments

Comments
 (0)