From 8aa156796a7853e6c1986689d1c5cd47ccefef03 Mon Sep 17 00:00:00 2001 From: David Himmelstrup Date: Sat, 22 Aug 2020 12:44:07 +0800 Subject: [PATCH] Improve caching for Github Pages. --- .github/workflows/gh-pages.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ed11928..acd21df 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -18,7 +18,7 @@ jobs: with: elm-version: 0.19.1 - - name: Cache + - name: Cache Cabal uses: actions/cache@v1 env: cache-name: cache-cabal @@ -30,12 +30,18 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- - - name: Cache + - name: Cache StackRoot uses: actions/cache@v1 with: path: ~/.stack key: ${{ runner.os }}-${{ hashFiles('**/*.cabal') }}-stack + - name: Cache Stack + uses: actions/cache@v1 + with: + path: ~/.stack-work + key: ${{ runner.os }}-${{ hashFiles('**/*.cabal') }}-stack-work + - name: Install dependencies run: | cabal v2-update