[fix] update Windows runner to windows-2025-vs2026#367
Conversation
Agent-Logs-Url: https://github.com/Azure/azihsm-sdk/sessions/614d7897-879f-48fd-b623-f4a5a014cc54 Co-authored-by: zimmy87 <5205889+zimmy87@users.noreply.github.com>
zimmy87
left a comment
There was a problem hiding this comment.
the windows workflow is failing due to a Cmake error in api\tests\cpp\CMakeLists.txt:
CMake Error at CMakeLists.txt:5 (project):
Generator
Visual Studio 17 2022
could not find any instance of Visual Studio.
please upgrade the generator to one appropriate for Visual Studio 18 2026 by updating api\tests\build.rs and fix any additional workflow failures caused by the upgrade
There was a problem hiding this comment.
Pull request overview
Pins Windows GitHub Actions jobs to the upcoming VS2026-based runner image to proactively surface any toolchain-related breaking changes before the platform redirect takes effect.
Changes:
- Update the
build_windowsjob runner fromwindows-latesttowindows-2025-vs2026. - Update the cache-refresh Windows job runner from
windows-latesttowindows-2025-vs2026.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/rust.yml | Pins the Windows build/test CI job to windows-2025-vs2026. |
| .github/workflows/create_new_cache.yml | Pins the Windows cache creation job to windows-2025-vs2026. |
Agent-Logs-Url: https://github.com/Azure/azihsm-sdk/sessions/84b16249-278b-45ae-8418-30b7ae924c91 Co-authored-by: zimmy87 <5205889+zimmy87@users.noreply.github.com>
Fixed in dc9ab61 — updated the generator string in |
GitHub is redirecting
windows-2025runner requests towindows-2025-vs2026by May 12, 2026. Pinning explicitly towindows-2025-vs2026now surfaces any breaking changes from the VS2026 toolchain ahead of the forced migration.Changes
.github/workflows/rust.yml—build_windowsjob:windows-latest→windows-2025-vs2026.github/workflows/create_new_cache.yml—create_new_cache_windowsjob:windows-latest→windows-2025-vs2026api/tests/cpp/CMakeLists.txt— update minimum required cmake version on Windows to 4.2, which is required for VS2026 generator (see https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2018%202026.html#generator:Visual%20Studio%2018%202026)api/tests/build.rs— use VS2026 generator