Skip to content

Commit 7325575

Browse files
Merge pull request #237 from fsprojects/repo-assist/eng-ci-cache-2026-03-08-3f86249ea8ef643c
[Repo Assist] ci: cache NuGet packages to speed up builds
2 parents 4e5d599 + 8003390 commit 7325575

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
uses: actions/setup-dotnet@v5
4040
with:
4141
dotnet-version: ${{ matrix.dotnet }}
42+
- name: Cache NuGet packages
43+
uses: actions/cache@v4
44+
with:
45+
path: ~/.nuget/packages
46+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/paket.lock') }}
47+
restore-keys: |
48+
${{ runner.os }}-nuget-
4249
- name: Install local tools
4350
run: dotnet tool restore
4451
- name: Paket Restore

0 commit comments

Comments
 (0)