Pin the publish workflow's Windows runner to windows-2022 - #81
Merged
Merged
Conversation
GitHub's windows-latest image now ships Visual Studio 2026, so conan detects
msvc 195 and asks CMake for a generator the image's CMake does not know:
bzip2/1.0.8: settings: os=Windows compiler=msvc compiler.version=195
bzip2/1.0.8: RUN: cmake -G "Visual Studio 18 2026" ...
CMake Error: Could not create named generator Visual Studio 18 2026
Generators
Visual Studio 17 2022 = Generates Visual Studio 2022 project files.
The first dependency built from source dies at configure and takes the whole
release with it, since publish only runs once every platform succeeds. This
failed the 0.1.1-rc3 release.
build.yml already pins windows-2022 for exactly this reason, so PR builds have
been passing while the release path stayed on the broken image. Apply the same
pin here.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Nicolas Palpacuer (NickPPC)
requested a review
from Vijay Vuyyuru (vijayvuyyuru)
July 29, 2026 18:55
Vijay Vuyyuru (vijayvuyyuru)
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
0.1.1-rc3release failed (run 30477264663). GitHub'swindows-latestimage now ships Visual Studio 2026, so conan detectsmsvc 195and asks CMake for a generator that image's CMake does not have:The first dependency built from source (bzip2) dies at the configure step and
make conan-pkgfails (Makefile:69). The other three platforms were onlycancelledby fail-fast andpublishwasskipped— the release job is all-or-nothing.Unrelated to any code change; the runner image moved.
Changes
windows/amd64matrix entry towindows-2022, matching whatbuild.ymlalready does, with the same explanatory comment.Why this only broke at release time
The two workflows disagreed about the Windows runner:
build.yml:12windows-2022— "pin instead of using windows-latest which was recently bumped to a version that breaks conan"publish.yml:28windows-latest← this PRSomeone already hit this and pinned
build.yml, butpublish.ymlwas never updated. So every PR built Windows against a good image while the release path stayed on the broken one, and nothing surfaced until a release was actually cut.Testing
publish.ymlparses, and the matrix resolves as expected:windows-latestrunner remains in either workflow (the two matches left are the explanatory comments).publish.ymlonly triggers onrelease, so the fix is confirmed by cutting the next release candidate. The other three platforms were cancelled rather than failed, so they are unproven for this tag — if one of them also breaks, it will surface on the retry.Follow-ups worth their own tickets
build.ymlandpublish.ymlduplicate their build setup with no shared source of truth. That duplication is precisely how this drift happened — the pin was applied to one and not the other. A composite action or reusable workflow would make this class of bug impossible.windows-2022is a stopgap; that image will eventually be retired. The durable fix is to make the build work on whatever MSVC is current, most likely by ensuring a CMake new enough for the detected toolset.xtensorandboostranges that break cloud builds. The common thread is unpinned build environments.Claude Code Prompts Used
🤖 Generated with Claude Code