File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,32 @@ jobs:
156
156
key : cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
157
157
paths :
158
158
- ~/.cabal
159
+ nix :
160
+ working_directory : ~/build
161
+ environment :
162
+ - NIXPKGS_ALLOW_BROKEN : 1
163
+ docker :
164
+ - image : nixorg/nix:circleci
165
+ steps :
166
+ - checkout
167
+ - run :
168
+ name : Sync submodules
169
+ command : git submodule sync --recursive
170
+ - run :
171
+ name : Update submodules
172
+ command : git submodule update --recursive --init
173
+ - restore-cache :
174
+ keys :
175
+ - cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
176
+ - run :
177
+ name : Build
178
+ command : nix-shell -j4 --run "cabal new-update && cabal new-build -j1 --enable-tests"
179
+ no_output_timeout : 30m
180
+ - save_cache :
181
+ key : cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
182
+ paths :
183
+ - ~/.cabal
184
+
159
185
160
186
161
187
workflows :
@@ -170,3 +196,4 @@ workflows:
170
196
- ghc-8.10.1
171
197
# - ghc-nightly
172
198
- cabal
199
+ - nix
You can’t perform that action at this time.
0 commit comments