Skip to content

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

Merged
seisman merged 2 commits into
masterfrom
ci/windows
Aug 25, 2026
Merged

seisman merged 2 commits into
masterfrom
ci/windows

Conversation

@seisman

@seisman seisman commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

@seisman
seisman requested a review from Esteban82 August 25, 2026 06:49
@seisman

seisman commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

@seisman seisman changed the title CI: Explicitely pin to windows-2025 and update Visual Studio path CI: Explicitly pin to windows-2025 and update Visual Studio path Aug 25, 2026
The vcvars64.bat path is hardcoded and breaks whenever the Windows
runner image bundles a different Visual Studio version. Use the
TheMrMilchmann/setup-msvc-dev action to locate and configure the MSVC
dev environment instead, and keep windows-latest so future runner
image updates don't require path changes here.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@seisman seisman changed the title CI: Explicitly pin to windows-2025 and update Visual Studio path CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows Aug 25, 2026
@Esteban82

Copy link
Copy Markdown
Member

@Esteban82 This PR should fix the issue mentioned at https://github.com/GenericMappingTools/gmt/pull/9134/changes#r3850110153.

ok, so once we merge this, the other PR would be solve?

@seisman
seisman merged commit a35a28a into master Aug 25, 2026
5 of 7 checks passed
@seisman
seisman deleted the ci/windows branch August 25, 2026 12:05
@seisman

seisman commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

With this PR merged, I think changes in ci/install-dependencies-windows.sh in PR #9134 are not needed.

Esteban82 added a commit that referenced this pull request Aug 25, 2026
Resolves the conflict with #9144, which replaced the hardcoded Visual Studio
path with the setup-msvc-dev action on Windows, in the same steps this branch
rewrites to fix the install.

Take master's approach in both tests.yml and docs.yml: adopt the new
"Setup MSVC (Windows)" step and drop the `call ...\vcvars64.bat` line it makes
redundant, while keeping this branch's install work (the merged
compile-and-install step, the INSTALLDIR/vcpkg path normalisation and the
`if: runner.os != 'Windows'` guard on the Unix install step).

The result is byte-identical to the Windows steps master already carries in
build.yml, which is the point of this branch: propagate to tests.yml and
docs.yml what build.yml has.

Co-Authored-By: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants