Skip to content

Commit 6317d69

Browse files
shanselmanCopilot
andcommitted
ci: add NuGet cache to build and build-msix jobs (closes #135)
Reuses the same cache key as the test job (nuget-OS-csproj-hash). Build runners now hit the warm cache populated by the test job. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4ffd028 commit 6317d69

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ jobs:
7474
with:
7575
dotnet-version: 10.0.x
7676

77+
- name: Cache NuGet packages
78+
uses: actions/cache@v4
79+
with:
80+
path: ~/.nuget/packages
81+
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
82+
restore-keys: nuget-${{ runner.os }}-
83+
7784
- name: Restore WinUI Tray App
7885
run: dotnet restore src/OpenClaw.Tray.WinUI -r ${{ matrix.rid }}
7986

@@ -133,6 +140,13 @@ jobs:
133140
with:
134141
dotnet-version: 10.0.x
135142

143+
- name: Cache NuGet packages
144+
uses: actions/cache@v4
145+
with:
146+
path: ~/.nuget/packages
147+
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
148+
restore-keys: nuget-${{ runner.os }}-
149+
136150
- name: Setup MSBuild
137151
uses: microsoft/setup-msbuild@v2
138152

0 commit comments

Comments
 (0)