Skip to content

Commit

Permalink
Cache nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bdukes committed Mar 9, 2023
1 parent 788cf00 commit fb44e1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
configuration: [Release]

runs-on: windows-latest

env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

steps:
- name: Checkout
Expand Down Expand Up @@ -58,6 +61,13 @@ jobs:
npm ci
cd ..
- uses: actions/cache@v3
with:
path: ${{ env.NUGET_PACKAGES }}
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore NuGet packages
run: nuget restore -LockedMode

Expand Down

0 comments on commit fb44e1c

Please sign in to comment.