;ci: linux: reuse old caches once more to save rebuilding

This commit is contained in:
Simon Michael 2020-03-07 13:34:23 -08:00
parent 4526938d39
commit 0cdbd3049b

View File

@ -95,11 +95,9 @@ jobs:
with:
path: ~/.stack
key: ${{ runner.os }}-stack-global-${{ hashFiles('**.yaml') }}
restore-keys: ${{ runner.os }}-stack-global
- name: show stuff
run: |
if [[ -e ~/.stack ]]; then ls -lFRa ~/.stack; fi
restore-keys: |
${{ runner.os }}-stack-global
${{ runner.os }}-stack
- name: Cache stack-installed programs in ~/.local/bin
id: stack-programs
@ -107,11 +105,9 @@ jobs:
with:
path: ~/.local/bin
key: ${{ runner.os }}-stack-programs-${{ hashFiles('**.yaml') }}
restore-keys: ${{ runner.os }}-stack-programs
- name: show stuff
run: |
if [[ -e ~/.local/bin ]]; then ls -lFRa ~/.local/bin; fi
restore-keys: |
${{ runner.os }}-stack-programs
${{ runner.os }}-local-bin
# stack's local package dbs for the project and each package
- name: Cache .stack-work
@ -201,3 +197,11 @@ jobs:
# --no-print-missing-docs is 600% quieter
env:
ARGS: ${{ matrix.plan.resolver }}
- name: show stuff
run: |
if [[ -e ~/.stack ]]; then ls -lFRa ~/.stack; fi
- name: show stuff
run: |
if [[ -e ~/.local/bin ]]; then ls -lFRa ~/.local/bin; fi