Skip to content

Commit

Permalink
Have another go at caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnicol committed Apr 8, 2020
1 parent 4a9e10f commit ddc3fb2
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,15 @@ jobs:

- name: Cache Stack downloads
uses: actions/cache@v1
env:
cache-name: cache-stack-modules-linux
with:
path: /$HOME/.stack/
key: download-cache-${{ hashFiles('**/stack.yaml.lock') }}
path: /{{$HOME}}/.stack/
key: ${{ runner.os }}-${{ hashFiles('**/stack.yaml.lock') }}

- name: Cache Stack Build
uses: actions/cache@v1
env:
cache-name: cache-stack-local-modules-linux
with:
path: ./hastile/.stack-work/
key: ${{ hashFiles('**/hastile.cabal') }}${{ hashFiles('**/stack.yaml.lock') }}
key: ${{ runner.os }}-${{ hashFiles('**/hastile.cabal') }}${{ hashFiles('**/stack.yaml.lock') }}

- name: stack pre (setup, configure)
run: |
Expand Down Expand Up @@ -109,19 +105,15 @@ jobs:

- name: Cache Stack downloads
uses: actions/cache@v1
env:
cache-name: cache-stack-modules-windows
with:
path: C:\Users\runneradmin\AppData\Roaming\stack
key: ${{ hashFiles('**/stack.yaml.lock') }}
key: ${{ runner.os }}-${{ hashFiles('**/stack.yaml.lock') }}

- name: Cache Stack Build
uses: actions/cache@v1
env:
cache-name: cache-stack-local-modules-windows
with:
path: ./hastile/.stack-work/
key: ${{ hashFiles('**/hastile.cabal') }}${{ hashFiles('**/stack.yaml.lock') }}
key: ${{ runner.os }}-${{ hashFiles('**/hastile.cabal') }}${{ hashFiles('**/stack.yaml.lock') }}

- name: stack pre (setup, configure)
run: |
Expand Down Expand Up @@ -175,19 +167,15 @@ jobs:

- name: Cache Stack downloads
uses: actions/cache@v1
env:
cache-name: cache-stack-modules-macos
with:
path: /$HOME/.stack/
key: download-cache-${{ hashFiles('**/stack.yaml.lock') }}
path: /{{$HOME}}/.stack/
key: ${{ runner.os }}-${{ hashFiles('**/stack.yaml.lock') }}

- name: Cache Stack Build
uses: actions/cache@v1
env:
cache-name: cache-stack-local-modules-macos
with:
path: ./hastile/.stack-work/
key: ${{ hashFiles('**/hastile.cabal') }}${{ hashFiles('**/stack.yaml.lock') }}
key: ${{ runner.os }}-${{ hashFiles('**/hastile.cabal') }}${{ hashFiles('**/stack.yaml.lock') }}

- name: stack pre (setup, configure)
timeout-minutes: 720
Expand Down

0 comments on commit ddc3fb2

Please sign in to comment.