aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-03 21:25:39 +0800
committercrupest <crupest@outlook.com>2020-06-03 21:25:39 +0800
commitc7b2c7933239a53769d3d46af5b0a90f7650085c (patch)
tree807bb631dd736df2e111078e2ec562ceb9a4e5df /.github/workflows
parent227e0855fc99f0d2f27891dca24fcec7eb4378f6 (diff)
downloadtimeline-c7b2c7933239a53769d3d46af5b0a90f7650085c.tar.gz
timeline-c7b2c7933239a53769d3d46af5b0a90f7650085c.tar.bz2
timeline-c7b2c7933239a53769d3d46af5b0a90f7650085c.zip
CI: Use nuget cache.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yaml9
1 files changed, 9 insertions, 0 deletions
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: