Skip to content

Fix Windows CI: stop pinning CMake to the VS 2022 generator#1208

Merged
lightvector merged 1 commit into
lightvector:masterfrom
ChinChangYang:claude/ci-windows-runner-image-toc1mt
Jun 12, 2026
Merged

Fix Windows CI: stop pinning CMake to the VS 2022 generator#1208
lightvector merged 1 commit into
lightvector:masterfrom
ChinChangYang:claude/ci-windows-runner-image-toc1mt

Conversation

@ChinChangYang

Copy link
Copy Markdown
Contributor

Summary

The build-windows CI job started failing at the CMake configure step:

CMake Error at CMakeLists.txt:34 (project):
  Generator "Visual Studio 17 2022" could not find any instance of Visual Studio.

GitHub migrated the windows-latest runner image to Windows Server 2025 with Visual Studio 2026 only (rolled out June 8–15, 2026, see actions/runner-images#14017), so the hard-coded -G "Visual Studio 17 2022" generator no longer resolves.

Fix

Drop the explicit generator from the Configure CMake step, keeping -A x64. CMake auto-detects the newest installed Visual Studio (VS 2026 on the current image), and the job will survive future VS bumps on the runner image without further edits. All other steps (--config Release build, Release/ paths, DLL copy, tests) are generator-version-agnostic.

Verification

workflow_dispatch run on this branch: run 27383148471 — all 4 jobs passed, including build-windows (configure under VS 2026, build, and katago.exe runtests all green).

https://claude.ai/code/session_018eaSTE1PhvV7SsiNyJrq76


Generated by Claude Code

The windows-latest runner image now ships Visual Studio 2026 only
(actions/runner-images#14017), so configuring with
-G "Visual Studio 17 2022" fails with "could not find any instance of
Visual Studio". Drop the explicit generator and let CMake auto-detect
the installed Visual Studio, keeping -A x64.

https://claude.ai/code/session_018eaSTE1PhvV7SsiNyJrq76
@lightvector lightvector merged commit 2a4d06d into lightvector:master Jun 12, 2026
4 checks passed
ChinChangYang added a commit to ChinChangYang/KataGo that referenced this pull request Jun 12, 2026
…tor#1208)

The windows-latest runner image now ships Visual Studio 2026 only
(actions/runner-images#14017), so configuring with
-G "Visual Studio 17 2022" fails with "could not find any instance of
Visual Studio". Drop the explicit generator and let CMake auto-detect
the installed Visual Studio, keeping -A x64.

https://claude.ai/code/session_018eaSTE1PhvV7SsiNyJrq76

Co-authored-by: Claude <noreply@anthropic.com>
@ChinChangYang ChinChangYang deleted the claude/ci-windows-runner-image-toc1mt branch June 12, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants