mirror of
https://github.com/higherkindness/mu-haskell.git
synced 2024-09-11 14:36:01 +03:00
Cache Stack For Great Good 🏬 (#158)
This commit is contained in:
parent
bdcee35292
commit
fae3ab53e9
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
@ -10,11 +10,19 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: mstksg/setup-stack@v1
|
||||
- uses: actions/cache@v1
|
||||
name: Cache ~/.stack
|
||||
with:
|
||||
path: ~/.stack
|
||||
key: dot-stack-${{ hashFiles('stack.yaml') }}
|
||||
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
|
||||
restore-keys: |
|
||||
dot-stack-
|
||||
${{ runner.os }}-stack-
|
||||
- uses: actions/cache@v1
|
||||
name: Cache .stack-work
|
||||
with:
|
||||
path: .stack-work
|
||||
key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}-${{ '**/*.hs' }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-stack-work-
|
||||
- name: Get Standalone Haddock
|
||||
run: stack --resolver lts-14.27 install standalone-haddock
|
||||
- name: Get rdkafka
|
||||
|
12
.github/workflows/haskell.yml
vendored
12
.github/workflows/haskell.yml
vendored
@ -7,11 +7,19 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: mstksg/setup-stack@v1
|
||||
- uses: actions/cache@v1
|
||||
name: Cache ~/.stack
|
||||
with:
|
||||
path: ~/.stack
|
||||
key: dot-stack-${{ hashFiles('stack.yaml') }}
|
||||
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
|
||||
restore-keys: |
|
||||
dot-stack-
|
||||
${{ runner.os }}-stack-
|
||||
- uses: actions/cache@v1
|
||||
name: Cache .stack-work
|
||||
with:
|
||||
path: .stack-work
|
||||
key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}-${{ '**/*.hs' }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-stack-work-
|
||||
- name: Get rdkafka
|
||||
run: sudo apt-get install librdkafka-dev
|
||||
- name: Compile with Stack
|
||||
|
Loading…
Reference in New Issue
Block a user