Replies: 1 comment
-
Under Windows the download cache is |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
How do I effectively cache workloads and packages in a GH Action?
This is what I'm currently using to cache (based on Cache examples):
I get a successful cache hit on subsequent runs, but dotnet goes and redownloads workloads all over again... so workloads must be stored outside
~/.nuget/packages
. But I don't know where, and I don't know where to look. Should I useworkload restore
instead? I'm running this on thewindows-2022
runner.I'm also realizing that hashing csproj files as the key is a bad idea, since any change at all would change the key. I guess I could read the packages and versions from XML and hash them alone?
Beta Was this translation helpful? Give feedback.
All reactions