Skip to content
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

Binary caching of vcpkg packages #92

Open
DanRStevens opened this issue Jun 28, 2023 · 0 comments
Open

Binary caching of vcpkg packages #92

DanRStevens opened this issue Jun 28, 2023 · 0 comments

Comments

@DanRStevens
Copy link
Member

DanRStevens commented Jun 28, 2023

Seems there is a new vcpkg feature designed specifically for GitHub Actions (though is still experimental):
https://learn.microsoft.com/en-us/vcpkg/users/binarycaching#gha


In the past we've used the NuGet method, with setup for GitHub Actions:
https://learn.microsoft.com/en-us/vcpkg/users/binarycaching#quickstart-github

However, it seems when using the GITUHB_TOKEN credential, the uploaded packages are associated with the repository of the workflow being run, and are only accessible to that repository. This is unfortunate, as the package repository is per organization, not per repository, so if another repository is setup with the same packages to cache, they can't both upload a package with the same name.

Sample workflow run error:
https://github.com/OutpostUniverse/op2-landlord/actions/runs/5395217904/jobs/9797427353

WARNING: Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.

Relevant GitHub documentation:


Organization package settings:

Organization packages:

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

No branches or pull requests

1 participant