From acb542df982f0a8819f8c3c8ee6627679e484814 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 Apr 2020 21:53:38 -0700 Subject: Add caching to linux ci. --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- cgit v1.2.3