Skip to content

ci: add NuGet package caching to test job - #67

Merged
shanselman merged 1 commit into
masterfrom
ci/nuget-cache
Mar 18, 2026
Merged

shanselman merged 1 commit into
masterfrom
ci/nuget-cache

Conversation

@shanselman

Copy link
Copy Markdown
Collaborator

Adds \�ctions/cache@v4\ for ~/.nuget/packages\ keyed on csproj hashes.

  • Saves ~30-60s on subsequent CI runs
  • Uses csproj hash (not lock files) since this repo doesn't use \packages.lock.json`n- Only added to \ est\ job (runs on every push/PR); build jobs run less frequently

Based on Repo Assist suggestion (#66).

Co-authored-by: Copilot [email protected]

Adds actions/cache@v4 for ~/.nuget/packages keyed on csproj hashes.
Saves ~30-60s on subsequent CI runs by reusing cached packages.

Uses csproj hash (not lock files) since this repo doesn't use
packages.lock.json, which is why setup-dotnet's cache: true won't work.

Based on Repo Assist suggestion (#66).

Co-authored-by: Copilot <[email protected]>
@shanselman
shanselman merged commit a9de0c7 into master Mar 18, 2026
14 checks passed
@vincentkoc
vincentkoc deleted the ci/nuget-cache branch August 2, 2026 07:55
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

Successfully merging this pull request may close these issues.

1 participant