mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-14 11:55:48 +01:00
Try to cache stack and ghc install
This commit is contained in:
parent
33ca535e17
commit
e84c1a82be
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -13,20 +13,20 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: haskell/ghcup-setup@v1
|
||||
id: ghcup
|
||||
with:
|
||||
stack-hook: true
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.ghcup
|
||||
${{ steps.ghcup.outputs.basedir }}
|
||||
~/.stack
|
||||
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml') }}
|
||||
restore-keys: |
|
||||
stack-${{ runner.os }}-
|
||||
${{ runner.os }}-
|
||||
- uses: haskell/ghcup-setup@v1
|
||||
with:
|
||||
stack-hook: true
|
||||
- run: |
|
||||
ghcup install stack
|
||||
- run: ghcup install stack
|
||||
- run: stack test
|
||||
|
||||
flake-no-push:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user