Reposted by Roman
⚡ 3x faster .NET restore on GitHub Actions Windows runners, with two environment variables.
By default, the NuGet cache sits on the slow C: disk. Move NUGET_PACKAGES and NUGET_HTTP_CACHE_PATH to the faster D: disk, and Windows restore times match Linux: awakecoding.com/posts/speedi...
awakecoding.com
Speeding Up .NET Builds on Windows: The NuGet Cache Fix
Windows CI builds always finish last, but is Windows really that slow? Benchmarking the same .NET build on GitHub-hosted Windows and Linux runners revealed that the default NuGet cache location on C: ...