Making it easy to use NuGet package caching in github workflows #52383
LegalizeAdulthood
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was running into a lot of problems trying to get NuGet package caching to work properly in my workflows.
After going through a bunch of debugging sessions, I resolved all the problems and figured out how to get things working for my public repositories. There are a bunch of moving pieces and policies that can interfere with proper operation and debugging them is non-obvious.
I've created two github actions that make your life simpler:
LegalizeAdulthood/vcpkg-github-cache/setupif you prefer a more explicit name for the setup step.LegalizeAdulthood/vcpkg-github-cache/analyzeis available to analyze problems with package caching. The most common situation is likely to be that you're sharing packages across multiple public repositories and the packages must be manually configured to allow multiple repositories to update the packages. Unfortunately there's no way to manipulate package permissions through theghCLI, REST API or GraphQL API. The action will provide a summary table with links to make it easier for you to configure package permissions as needed.I've tested this out on my public repositories and it seems to be working well. Finally, using cached packages is easy!
All reactions