Skip to content

Commit 2f57807

Browse files
committed
Hopefully fix mac ci builds.
1 parent 4538d75 commit 2f57807

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ jobs:
137137
path: ~/.cache
138138
key: cache-${{ matrix.os }}-${{ hashFiles('devbox.lock', 'cabal.project.freeze') }}
139139

140+
- name: Cache cabal state
141+
uses: actions/cache@v4
142+
with:
143+
path: ~/.cabal
144+
key: state-${{ matrix.os }}-${{ hashFiles('devbox.lock', 'cabal.project.freeze') }}
145+
140146
- name: Cache build artifacts
141147
uses: actions/cache@v4
142148
with:
@@ -154,7 +160,7 @@ jobs:
154160
run: devbox run -- npm install
155161

156162
- name: Configure
157-
run: devbox run -- cabal configure --enable-tests -O2
163+
run: XDG_STATE_HOME=~/.cabal devbox run -- cabal configure --enable-tests -O2
158164

159165
- name: Build
160166
run: devbox run -- cabal build

0 commit comments

Comments
 (0)