-
Notifications
You must be signed in to change notification settings - Fork 25
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
run-vcpkg@v11 requires manually setting environment variables for caching to work #195
Comments
@akrieger good question, I need to add explicitly this info to the uses: run-vcpkg@v11. # <= Succeeds
run: vcpkg.exe install <rest of cmd line> # <= Fails with missing env var error When running vcpkg yourself (i.e. when it is not run by the action), you need to add the following variables, like it is done in the C++ project template: - uses: actions/github-script@v6
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
I see two fixes here:
|
Our workflow file uses
|
Setting the env vars seemed to suppress that output. I found the job failing is caused by a changed portfile, so I'll edit the issue title appropriately. |
@akrieger fixed with release https://github.com/lukka/run-vcpkg/releases/tag/v11.1, let me know! |
Seems like it worked! I removed the logic which set the env vars myself, vcpkg seemed to restore from its own cache correctly. |
@akrieger let me know if anything else needs to be fixed, thanks! |
Using vcpkg in manifest mode, our workflow which worked on v10 emits this output and doesn't cache.
The text was updated successfully, but these errors were encountered: