From fb44e1cefd8b69085ca06a99db9c34711ebd0089 Mon Sep 17 00:00:00 2001 From: Brian Dukes Date: Thu, 9 Mar 2023 17:17:10 -0600 Subject: [PATCH] Cache nuget packages --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f44428..6f193d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,9 @@ jobs: configuration: [Release] runs-on: windows-latest + + env: + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages steps: - name: Checkout @@ -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