Skip to content

Commit 19211b3

Browse files
nomeataysangkok
authored andcommitted
Save cache after dependency build
1 parent 56bb510 commit 19211b3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/bump.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v3
2222

23-
- name: cache cabal store
24-
uses: actions/cache@v3
23+
- name: Cache cabal store
24+
id: cache
25+
uses: actions/cache/restore@v3
2526
with:
2627
key: bump-action-cabal-store-${{ runner.os }}-${{ github.sha }}
2728
path: ~/.cabal/store
@@ -98,6 +99,13 @@ jobs:
9899
run: |
99100
cabal build --only-dependencies --enable-tests --write-ghc-environment-files=always ${{ env.CABAL_FLAGS }}
100101
102+
- name: Save cache
103+
uses: actions/cache/save@v3
104+
if: always()
105+
with:
106+
key: ${{ steps.cache.outputs.cache-primary-key }}
107+
path: ~/.cabal/store
108+
101109
- name: Build local package
102110
if: env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
103111
shell: bash

0 commit comments

Comments
 (0)