Skip to content

Commit 551045f

Browse files
authored
Update ci.yml
1 parent 9fd3be9 commit 551045f

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
name: Repackage per framework
200200
if: ${{ always() && needs.build.outputs.build-result == 'success' }}
201201
needs: [build, semver]
202-
runs-on: ubuntu-latest
202+
runs-on: windows-latest
203203

204204
strategy:
205205
fail-fast: false
@@ -217,6 +217,19 @@ jobs:
217217
name: bundle-${{ matrix.configuration }}
218218
path: ${{ env.OUTPUT_PATH }}
219219

220+
221+
- name: Cache NuGet packages
222+
id: cache-nugets
223+
uses: actions/cache@v4
224+
with:
225+
path: ${{ github.workspace }}/packages
226+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj', 'Directory.Build.props') }} # Unique key for the cache
227+
restore-keys: |
228+
${{ runner.os }}-nuget-
229+
230+
- name: Restore dependencies
231+
run: dotnet restore --p:ContinuousIntegrationBuild=true
232+
220233
- name: Prepare publish package for
221234
if: ${{ matrix.configuration == 'Release' }}
222235
run: >

0 commit comments

Comments
 (0)