mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 18:29:36 +03:00
ci: github: try adding mac/windows, caching
This commit is contained in:
parent
d97ec1640b
commit
4693212bcd
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -49,7 +49,7 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest] #, macOS-latest]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
# use this to specify what resolvers and ghc to use
|
||||
plan:
|
||||
# - { build: stack, resolver: "--resolver lts-9" } # ghc-8.0.2
|
||||
@ -78,7 +78,22 @@ jobs:
|
||||
# build: cabal
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
|
||||
# cf https://github.com/actions/cache/blob/master/examples.md#haskell---cabal
|
||||
- uses: actions/cache@v1
|
||||
name: Cache ~/.stack-work
|
||||
with:
|
||||
path: ~/.stack-work
|
||||
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-work
|
||||
|
||||
- uses: actions/cache@v1
|
||||
name: Cache ~/.local/bin
|
||||
with:
|
||||
path: ~/.stack-work
|
||||
key: ${{ runner.os }}-${{ matrix.ghc }}-local-bin
|
||||
|
||||
- name: Install OS Packages
|
||||
uses: mstksg/get-package@v1
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user