Skip to content

CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows - #4861

Open
seisman wants to merge 2 commits into
mainfrom
ci/setup-msvc-dev
Open

CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows#4861
seisman wants to merge 2 commits into
mainfrom
ci/setup-msvc-dev

Conversation

@seisman

@seisman seisman commented Aug 25, 2026

Copy link
Copy Markdown
Member

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-dev action, 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.

Supersedes #4860.

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 seisman added this to the 0.20.0 milestone Aug 25, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels Aug 25, 2026
@seisman seisman added the run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR label Aug 25, 2026
@seisman
seisman force-pushed the ci/setup-msvc-dev branch from d94bdce to 9f47d7f Compare August 25, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs needs review This PR has higher priority and needs review. run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant