From c7b2c7933239a53769d3d46af5b0a90f7650085c Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 3 Jun 2020 21:25:39 +0800 Subject: CI: Use nuget cache. --- .github/workflows/ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github/workflows/ci.yaml') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index be473c20..17852c94 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,10 +56,19 @@ jobs: runs-on: ubuntu-latest env: ASPNETCORE_ENVIRONMENT: "Development" + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages steps: - uses: actions/checkout@v2 + - name: Restore Cache + uses: actions/cache@v2 + with: + path: ${{ env.NUGET_PACKAGES }} + key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + nuget-${{ runner.os }}- + - name: Use .Net Core 3.1.x uses: actions/setup-dotnet@v1 with: -- cgit v1.2.3