Skip to content

WIP: CI: Fix the Visual Studio path due to the upgrading of Windows runner image - #4860

Closed
seisman wants to merge 1 commit into
mainfrom
ci/windows
Closed

WIP: CI: Fix the Visual Studio path due to the upgrading of Windows runner image#4860
seisman wants to merge 1 commit into
mainfrom
ci/windows

Conversation

@seisman

@seisman seisman commented Aug 25, 2026

Copy link
Copy Markdown
Member

The windows-latest/windows-2025 runner image upgraded its Visual Studio to 2026 in June, 2026 (https://github.blog/changelog/2026-05-14-github-actions-upcoming-image-migrations/#windows-2025-visual-studio-2026-image-migration).

This PR updates the Visual Studio path based on https://github.com/actions/runner-images/blob/main/images/windows/Windows2025-VS2026-Readme.md#visual-studio-enterprise-2026. This update is necessary, otherwise the CI can't find Visual Studio and use MinGW GCC to compile the source code.

It's weird. The CI still can't find VS correctly (xref: https://github.com/GenericMappingTools/pygmt/actions/runs/32818816716/job/97712485125?pr=4860), but a similar fix in the GMT repository seems to be working (https://github.com/GenericMappingTools/gmt/actions/runs/32817632151/job/97709027710?pr=9144)

@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog final review call This PR requires final review and approval from a second reviewer labels Aug 25, 2026
@seisman seisman added this to the 0.20.0 milestone Aug 25, 2026
@seisman seisman added run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR and removed final review call This PR requires final review and approval from a second reviewer run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR labels Aug 25, 2026
@seisman
seisman marked this pull request as draft August 25, 2026 07:09
@seisman seisman changed the title CI: Fix the Visual Studio path due to the upgrading of Windows runner image WIP: CI: Fix the Visual Studio path due to the upgrading of Windows runner image Aug 25, 2026
@seisman

seisman commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

Superseded by #4861.

@seisman seisman closed this Aug 25, 2026
@seisman
seisman deleted the ci/windows branch August 25, 2026 07:39
seisman added a commit that referenced this pull request Aug 25, 2026
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>
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 skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant