Skip to content

Commit

Permalink
Setup ghc cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gotchamana committed Oct 31, 2023
1 parent aef9200 commit 6ebf5cd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-setup-ghc: true
stack-no-global: true

- name: Cache ~/.stack
id: cache-stack
uses: actions/cache@v3
with:
path: ~/.stack
Expand All @@ -41,6 +35,14 @@ jobs:
restore-keys: |
${{ runner.os }}-stack-work-
- name: Setup envrionment
if: steps.cache-stack.outputs.cache-hit != 'true'
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-setup-ghc: true
stack-no-global: true

- name: Build
run: |
stack install
Expand Down

0 comments on commit 6ebf5cd

Please sign in to comment.