Skip to content

Commit 04a4f4d

Browse files
committed
Fix cabal caching.
1 parent 6fef91c commit 04a4f4d

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/build.yml

+16-8
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ jobs:
7070
- name: Cache cabal store
7171
uses: actions/cache@v4
7272
with:
73-
path:
74-
- ~/.local
75-
- ~/.cache
76-
key: deps-linux-${{ env.ghc }}-${{ hashFiles('cabal.project.freeze') }}
73+
path: ~/.local
74+
key: state-linux-${{ env.ghc }}-${{ hashFiles('cabal.project.freeze') }}
75+
76+
- name: Cache cabal cache
77+
uses: actions/cache@v4
78+
with:
79+
path: ~/.cache
80+
key: cache-linux-${{ env.ghc }}-${{ hashFiles('cabal.project.freeze') }}
7781

7882
- name: Cache build artifacts
7983
uses: actions/cache@v4
@@ -130,10 +134,14 @@ jobs:
130134
- name: Cache cabal store
131135
uses: actions/cache@v4
132136
with:
133-
path:
134-
- ~/.local
135-
- ~/.cache
136-
key: deps-${{ matrix.os }}-${{ hashFiles('devbox.lock', 'cabal.project.freeze') }}
137+
path: ~/.local
138+
key: store-${{ matrix.os }}-${{ hashFiles('devbox.lock', 'cabal.project.freeze') }}
139+
140+
- name: Cache cabal cache
141+
uses: actions/cache@v4
142+
with:
143+
path: ~/.cache
144+
key: cache-${{ matrix.os }}-${{ hashFiles('devbox.lock', 'cabal.project.freeze') }}
137145

138146
- name: Cache build artifacts
139147
uses: actions/cache@v4

0 commit comments

Comments
 (0)