git.iko.soy/typeable/pandoc
on master help sign in
Add caching to linux ci.
commitacb542df982f0a8819f8c3c8ee6627679e484814 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 12 Apr 2020, 21:53 (7 years ago) parent984a06d
1 file changed+15
.github/workflows/ci.yml+15
.github/workflows/ci.yml+15
@@ -55,6 +55,21 @@ jobs:
5555 cabal: '3.0'
5656 steps:
5757 - uses: actions/checkout@v1
58+
59+ # declare/restore cached things
60+ # caching doesn't work for scheduled runs yet
61+ # https://github.com/actions/cache/issues/63
62+
63+ - name: Cache stack global package db
64+ id: cabal-global
65+ uses: actions/cache@v1
66+ with:
67+ path: ~/.cabal
68+ key: ${{ runner.os }}-cabal-global-${{ hashFiles('cabal.project') }}
69+ restore-keys: |
70+ ${{ runner.os }}-cabal-global
71+ ${{ runner.os }}-cabal
72+
5873 - name: Install dependencies
5974 run: |
6075 export PATH=/opt/cabal/${{ matrix.versions.cabal }}/bin:/opt/ghc/${{ matrix.versions.ghc }}/bin:$PATH