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
commit325a7b930cf197ff0a42042d698849e752243eb3 (patch)
tree023334e972d0f403c122a46c29a89c095016099c /.github/workflows
parentf6efa149ee219a92065435a4a2ed240ab84162da (diff)
downloadtimeline-325a7b930cf197ff0a42042d698849e752243eb3.tar.gz
timeline-325a7b930cf197ff0a42042d698849e752243eb3.tar.bz2
timeline-325a7b930cf197ff0a42042d698849e752243eb3.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: