Skip to content

Commit 95e3819

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

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

.github/workflows/CI-windows.yml

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

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

2535
runs-on: ${{ matrix.os }}
@@ -45,12 +55,12 @@ jobs:
4555
4656
- name: Run CMake
4757
run: |
48-
cmake -G "Visual Studio 17 2022" -A x64 -Werror=dev --warn-uninitialized -DCMAKE_COMPILE_WARNING_AS_ERROR=On . || exit /b !errorlevel!
58+
cmake -A x64 -Werror=dev --warn-uninitialized -DCMAKE_COMPILE_WARNING_AS_ERROR=On . || exit /b !errorlevel!
4959
5060
- name: Build
5161
run: |
52-
msbuild -m simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
53-
62+
msbuild -m simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
63+
5464
- name: Test
5565
run: |
5666
.\${{ matrix.config }}\testrunner.exe || exit /b !errorlevel!
@@ -66,17 +76,17 @@ jobs:
6676
6777
- name: Run CMake (c++17)
6878
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!
79+
cmake -S . -B build.cxx17 -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=17 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
7080
7181
- name: Build (c++17)
7282
run: |
73-
msbuild -m build.cxx17\simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
83+
msbuild -m build.cxx17\simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
7484
7585
- name: Run CMake (c++20)
7686
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!
87+
cmake -S . -B build.cxx20 -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=20 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
7888
7989
- name: Build (c++20)
8090
run: |
81-
msbuild -m build.cxx20\simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
91+
msbuild -m build.cxx20\simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
8292

0 commit comments

Comments
 (0)