-
Notifications
You must be signed in to change notification settings - Fork 37.8k
ci: Set MSVC toolset version explicitly #28934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The GHA VS installation includes its own vcpkg package manager, which is available since VS 17.6. This change avoids any ambiguity about which copy of vcpkg we run.
This change avoids toolset incompatibilities that cause linker errors.
This reverts commit 91d5bd8.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the CI job still cache the vcpkg dependencies? Will this PR still work if there a minor version update on the build image? |
It does.
I've added the toolset version to the cache key: bitcoin/.github/workflows/ci.yml Line 250 in 70100f8
so the cache will be invalidated if it is changed. |
Wrong hash? :) |
Seems fine to do this, if this makes CI faster and there are no major downsides |
This PR is an alternative to #28905 and reverts it.
To avoid toolset version incompatibilities, which result in errors like this:
it is enough to set it explicitly in the vcpkg triplet file (see the second commit). The
VCToolsVersion
environment variable is set by theilammy/msvc-dev-cmd
action.Please note that the #28905 is not optimal: