Skip to content

Commit 07e73f5

Browse files
committed
CI: Build cabal deps in a separate step, use new-build.
1 parent 0b4b6ef commit 07e73f5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.circleci/config.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,21 @@ jobs:
148148
- cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
149149
- run:
150150
name: Update
151-
command: cabal update
151+
command: cabal new-update
152152
- run:
153153
name: Configure
154-
command: cabal configure --enable-tests
154+
command: cabal new-configure --enable-tests
155+
- run:
156+
name: Build dependencies
157+
command: cabal new-build -j1 --dependencies-only # need j1, else ghc-lib-parser triggers OOM
158+
no_output_timeout: 30m
159+
- save_cache:
160+
key: cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
161+
paths:
162+
- ~/.cabal
155163
- run:
156164
name: Build
157-
command: cabal build -j1 # need j1, else ghc-lib-parser triggers OOM
165+
command: cabal new-build -j1 # need j1, else ghc-lib-parser triggers OOM
158166
no_output_timeout: 30m
159167
- save_cache:
160168
key: cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}

0 commit comments

Comments
 (0)