Skip to content

Commit df3228a

Browse files
CI: Pin Windows runners to windows-2022 (VS 2026 breaks Conan/pixi builds) (#1156)
GitHub's `windows-latest` image now ships Visual Studio 2026 (MSVC 19.5), which breaks both Windows CI jobs: - `cmake Windows`: `conan profile detect` selects msvc 195, so Conan asks CMake for the "Visual Studio 18 2026" generator, which the installed CMake cannot create. The vendored foonathan-lexy dependency fails to build with "Could not create named generator Visual Studio 18 2026". - `Pixi (conda)`: `cmake ..` defaults to the "Visual Studio 17 2022" generator, which is no longer present ("could not find any instance of Visual Studio"). Pin both jobs to windows-2022 (VS 2022 / MSVC 19.3x) to restore green CI. Also set fail-fast: false on the pixi matrix so the ubuntu leg is no longer masked by a Windows failure. Co-authored-by: Davide Faconti <davide.faconti@gmail.com>
1 parent 2dcd7f2 commit df3228a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎.github/workflows/cmake_windows.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [windows-latest]
19+
# Pinned to windows-2022: windows-latest now ships Visual Studio 2026
20+
# (MSVC 19.5), which makes Conan request the "Visual Studio 18 2026"
21+
# generator that the installed CMake cannot create.
22+
os: [windows-2022]
2023
build_type: [Release, Debug]
2124

2225
steps:

‎.github/workflows/pixi.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ concurrency:
1414
jobs:
1515
pixi_conda_build:
1616
strategy:
17+
fail-fast: false
1718
matrix:
1819
os:
19-
- windows-latest
20+
# Pinned to windows-2022: windows-latest now ships Visual Studio 2026,
21+
# but cmake defaults to the "Visual Studio 17 2022" generator, which is
22+
# no longer present ("could not find any instance of Visual Studio").
23+
- windows-2022
2024
- ubuntu-latest
2125
runs-on: ${{ matrix.os }}
2226
steps:

0 commit comments

Comments
 (0)