CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows - #4861
Open
seisman wants to merge 2 commits into
Open
CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows#4861seisman wants to merge 2 commits into
seisman wants to merge 2 commits into
Conversation
The Windows runner image upgrade moved Visual Studio from "...\2022\Enterprise\..." to "...\18\Enterprise\...", breaking the hardcoded vcvars64.bat path (see PR #4860). Use the TheMrMilchmann/setup-msvc-dev action instead, which locates the VS installation dynamically via vswhere and exports the environment to later steps, so future runner image upgrades don't require another hardcoded-path fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
seisman
force-pushed
the
ci/setup-msvc-dev
branch
from
August 25, 2026 08:45
d94bdce to
9f47d7f
Compare
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.
The Windows runner image upgrade moved Visual Studio from "...\2022\Enterprise..." to "...\18\Enterprise...", breaking the hardcoded vcvars64.bat path (see PR #4860).
This PR uses the
TheMrMilchmann/setup-msvc-devaction, which locates the VS installation dynamically viavswhereand exports the environment to later steps, so future runner image upgrades don't require another hardcoded-path fix.Supersedes #4860.