aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-04-13 23:04:06 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-04-13 23:04:23 -0700
commit20c1c297b295e5da4433e6fe59d03ef8ac109337 (patch)
tree3caf3c530f6949caac88e2bb4f48b288a47ed8a9 /.github
parent34775b4128de2801e4d127064f012501ca18d208 (diff)
downloadpandoc-20c1c297b295e5da4433e6fe59d03ef8ac109337.tar.gz
Improve linux CI caching.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 87af0978e..9514dd6ef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -60,15 +60,23 @@ jobs:
# caching doesn't work for scheduled runs yet
# https://github.com/actions/cache/issues/63
- - name: Cache stack global package db
+ - name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v1
with:
path: ~/.cabal
- key: ${{ runner.os }}-cabal-global-${{ hashFiles('cabal.project') }}
+ key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
restore-keys: |
${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global
- ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal
+
+ - name: Cache cabal work
+ id: cabal-local
+ uses: actions/cache@v1
+ with:
+ path: dist-newstyle
+ key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local
+ restore-keys: |
+ ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local
- name: Install dependencies
run: |