Repository navigation
CI: Use setup-msvc-dev action instead of hardcoding the VS install path on Windows - #9144
Merged
Merged
Conversation
Member
Author
|
@Esteban82 This PR should fix the issue mentioned at https://github.com/GenericMappingTools/gmt/pull/9134/changes#r3850110153. |
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]>
Member
ok, so once we merge this, the other PR would be solve? |
Esteban82
approved these changes
Aug 25, 2026
Member
Author
|
With this PR merged, I think changes in |
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]>
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 CI started to fail recently because the
windows-latestrunner image has migrated from thewindows-2022towindows-2025(xref: https://github.blog/changelog/2026-05-14-github-actions-upcoming-image-migrations/), which ships VS 2026, rather than 2022.This PR use the
setup-msvc-devaction to automatically find the MSVC path and configure it, so that the Windows CI won't break suddenly due to runner image migrations.References: