aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-04-12 15:52:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-04-12 15:52:14 -0700
commit984a06dc293207e2f57cd7b7f6a94651fc7480cc (patch)
treea65b37d35de297e2c1669358510cc8b16e5b690e /.github
parente05d0a627ad6e4387984b889a525d09c7ea7bea1 (diff)
downloadpandoc-984a06dc293207e2f57cd7b7f6a94651fc7480cc.tar.gz
Add caching for Windows stack CI.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 33d52d9ef..8bd03f42f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -78,6 +78,27 @@ jobs:
shell: cmd
run: |
choco install haskell-stack
+
+ # declare/restore cached things
+ # caching doesn't work for scheduled runs yet
+ # https://github.com/actions/cache/issues/63
+
+ - name: Cache stack global package db
+ id: stack-global-package-db
+ uses: actions/cache@v1
+ with:
+ path: C:\Users\runneradmin\AppData\Roaming\stack\
+ key: ${{ runner.os }}-appdata-roaming-stack-${{ hashFiles('**.yaml') }}
+ restore-keys: ${{ runner.os }}-appdata-roaming-stack
+
+ # stack's local package dbs for the project and each package
+ - name: Cache .stack-work
+ uses: actions/cache@v1
+ with:
+ path: .stack-work
+ key: ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }}
+ restore-keys: ${{ runner.os }}-stack-work
+
- name: Install dependencies
run: |
stack update