mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-07 11:19:32 +03:00
;ci: github: linux: use smarter caching as in windows workflow
This commit is contained in:
parent
a88d9efdf5
commit
8863ac5fdf
39
.github/workflows/linux-nightly.yml
vendored
39
.github/workflows/linux-nightly.yml
vendored
@ -84,50 +84,67 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# cached things
|
# declare/restore cached things
|
||||||
|
|
||||||
- name: Cache ~/.stack
|
- name: Cache stack global package db
|
||||||
|
id: stack-global
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.stack
|
path: ~/.stack
|
||||||
key: ${{ runner.os }}-stack
|
key: ${{ runner.os }}-stack-global-${{ hashFiles('**.yaml') }}
|
||||||
#key: ${{ runner.os }}-${{ matrix.resolver }}-stack
|
restore-keys: ${{ runner.os }}-stack-global
|
||||||
|
|
||||||
- name: Cache ~/.local/bin
|
- name: show stuff
|
||||||
|
run: |
|
||||||
|
ls -lFRa ~/.stack
|
||||||
|
|
||||||
|
- name: Cache stack-installed programs in ~/.local/bin
|
||||||
|
id: stack-programs
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.local/bin
|
path: ~/.local/bin
|
||||||
key: ${{ runner.os }}-local-bin
|
key: ${{ runner.os }}-stack-programs-${{ hashFiles('**.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-stack-programs
|
||||||
|
|
||||||
|
- name: show stuff
|
||||||
|
run: |
|
||||||
|
ls -lFRa ~/.local/bin
|
||||||
|
|
||||||
|
# stack's local package dbs for the project and each package
|
||||||
- name: Cache .stack-work
|
- name: Cache .stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: .stack-work
|
path: .stack-work
|
||||||
key: ${{ runner.os }}-stack-work
|
key: ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-lib/.stack-work
|
- name: Cache hledger-lib/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-lib/.stack-work
|
path: hledger-lib/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-lib-stack-work
|
key: ${{ runner.os }}-hledger-lib-stack-work-${{ hashFiles('hledger-lib/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-lib-stack-work
|
||||||
|
|
||||||
- name: Cache hledger/.stack-work
|
- name: Cache hledger/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger/.stack-work
|
path: hledger/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-stack-work
|
key: ${{ runner.os }}-hledger-stack-work-${{ hashFiles('hledger/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-ui/.stack-work
|
- name: Cache hledger-ui/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-ui/.stack-work
|
path: hledger-ui/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-ui-stack-work
|
key: ${{ runner.os }}-hledger-ui-stack-work-${{ hashFiles('hledger-ui/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-ui-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-web/.stack-work
|
- name: Cache hledger-web/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-web/.stack-work
|
path: hledger-web/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-web-stack-work
|
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-web-stack-work
|
||||||
|
|
||||||
# actions
|
# actions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user