Skip to content

Commit 0d583de

Browse files
committed
Save cache earlier
1 parent 1510adb commit 0d583de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
ghc-version: ${{ matrix.ghc }}
4545
stack-version: ${{ matrix.stack }}
4646

47-
- uses: actions/cache@v3
47+
- uses: actions/cache/restore@v3
4848
name: Cache ~/.stack
4949
with:
5050
path: ~/.stack
@@ -54,6 +54,11 @@ jobs:
5454
- name: Build dependencies
5555
run: stack build --system-ghc --only-dependencies
5656

57+
- uses: actions/cache/save@v3
58+
with:
59+
path: ~/.stack
60+
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
61+
5762
- name: Build site executable
5863
run: stack build --system-ghc
5964

0 commit comments

Comments
 (0)