aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-04-12 21:53:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-04-12 21:53:38 -0700
commitacb542df982f0a8819f8c3c8ee6627679e484814 (patch)
treedfcda5bfe505a695fd907297773e1aa48b6ce614
parent984a06dc293207e2f57cd7b7f6a94651fc7480cc (diff)
downloadpandoc-acb542df982f0a8819f8c3c8ee6627679e484814.tar.gz
Add caching to linux ci.
-rw-r--r--.github/workflows/ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8bd03f42f..20713875b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,6 +55,21 @@ jobs:
cabal: '3.0'
steps:
- uses: actions/checkout@v1
+
+ # 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: cabal-global
+ uses: actions/cache@v1
+ with:
+ path: ~/.cabal
+ key: ${{ runner.os }}-cabal-global-${{ hashFiles('cabal.project') }}
+ restore-keys: |
+ ${{ runner.os }}-cabal-global
+ ${{ runner.os }}-cabal
+
- name: Install dependencies
run: |
export PATH=/opt/cabal/${{ matrix.versions.cabal }}/bin:/opt/ghc/${{ matrix.versions.ghc }}/bin:$PATH