Skip to content

Commit

Permalink
Save cache after dependency build
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata authored and ysangkok committed Jul 11, 2023
1 parent 56bb510 commit 19211b3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: cache cabal store
uses: actions/cache@v3
- name: Cache cabal store
id: cache
uses: actions/cache/restore@v3
with:
key: bump-action-cabal-store-${{ runner.os }}-${{ github.sha }}
path: ~/.cabal/store
Expand Down Expand Up @@ -98,6 +99,13 @@ jobs:
run: |
cabal build --only-dependencies --enable-tests --write-ghc-environment-files=always ${{ env.CABAL_FLAGS }}
- name: Save cache
uses: actions/cache/save@v3
if: always()
with:
key: ${{ steps.cache.outputs.cache-primary-key }}
path: ~/.cabal/store

- name: Build local package
if: env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
shell: bash
Expand Down

0 comments on commit 19211b3

Please sign in to comment.