aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-04-12 15:27:30 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-04-12 15:27:30 -0700
commite05d0a627ad6e4387984b889a525d09c7ea7bea1 (patch)
tree4259bb5f0c629798b32f2b40b3ae0339dbbf83d8 /.github/workflows/ci.yml
parentbf583c3d9cc70f45390b79b21bba788536a1aaac (diff)
downloadpandoc-e05d0a627ad6e4387984b889a525d09c7ea7bea1.tar.gz
Add caching for macOS CI build.
Diffstat (limited to '.github/workflows/ci.yml')
-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 221d1a245..33d52d9ef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -97,6 +97,27 @@ jobs:
run: |
curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz -o stack.tar.gz
tar xzvf stack.tar.gz --strip-components=1 'stack*/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
+ uses: actions/cache@v1
+ with:
+ path: ~/.stack
+ key: ${{ runner.os }}-stack-global-${{ hashFiles('**.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-stack-global
+ ${{ runner.os }}-stack
+
+ # stack's local package db
+ - name: Cache .stack-work
+ uses: actions/cache@v1
+ with:
+ path: .stack-work
+ key: ${{ runner.os }}-stack-work
+
- name: Install dependencies
run: |
./stack update