ci: github: tweaks
This commit is contained in:
parent
d259bd5a36
commit
9d4d1ab7e2
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -5,6 +5,7 @@
|
|||||||
# ref:
|
# ref:
|
||||||
# https://help.github.com/en/actions
|
# https://help.github.com/en/actions
|
||||||
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-and-storing-workflow-data
|
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-and-storing-workflow-data
|
||||||
|
# https://github.com/marketplace/actions/cache
|
||||||
# https://github.com/actions/cache
|
# https://github.com/actions/cache
|
||||||
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows
|
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows
|
||||||
# https://github.com/sdras/awesome-actions
|
# https://github.com/sdras/awesome-actions
|
||||||
@ -13,6 +14,8 @@
|
|||||||
# https://github.com/actions/setup-haskell
|
# https://github.com/actions/setup-haskell
|
||||||
# https://github.com/actions/upload-artifact
|
# https://github.com/actions/upload-artifact
|
||||||
# https://sevenzip.osdn.jp/chm/cmdline/commands/index.htm
|
# https://sevenzip.osdn.jp/chm/cmdline/commands/index.htm
|
||||||
|
# https://github.com/marketplace/actions/checkout
|
||||||
|
|
||||||
|
|
||||||
name: hledger CI
|
name: hledger CI
|
||||||
|
|
||||||
@ -82,47 +85,51 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# cache these dirs
|
|
||||||
- name: Cache ~/.stack
|
- name: Cache ~/.stack
|
||||||
uses: actions/cache@v1 # https://github.com/marketplace/actions/cache
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.stack
|
path: ~/.stack
|
||||||
key: ${{ runner.os }}-stack
|
key: ${{ runner.os }}-stack
|
||||||
#key: ${{ runner.os }}-${{ matrix.resolver }}-stack
|
#key: ${{ runner.os }}-${{ matrix.resolver }}-stack
|
||||||
|
|
||||||
- name: Cache ~/.local/bin
|
- name: Cache ~/.local/bin
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.local/bin
|
path: ~/.local/bin
|
||||||
key: ${{ runner.os }}-local-bin
|
key: ${{ runner.os }}-local-bin
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
# check out the current branch tip
|
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v2 # https://github.com/marketplace/actions/checkout
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install stack (ubuntu)
|
- name: Install stack (ubuntu)
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user