File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,31 @@ jobs:
251
251
stat ~/.cache/nix/test-path
252
252
nix-store --verify-path ~/.cache/nix/test-path
253
253
254
+ test-nix-config-eval :
255
+ needs : build
256
+ runs-on : ubuntu-22.04
257
+ steps :
258
+ - uses : actions/checkout@v3
259
+ - uses : actions/download-artifact@v3
260
+ id : nix-archives
261
+ with :
262
+ name : nix-archives-${{ runner.os }}
263
+ - uses : ./
264
+ with :
265
+ nix_archives_url : file://${{steps.nix-archives.outputs.download-path}}
266
+ - name : Verify Nix config
267
+ run : |
268
+ nix build --version # check if new style command is enabled
269
+ nix show-config | grep -q 'stalled-download-timeout = 333'
270
+
254
271
release :
255
272
runs-on : ubuntu-latest
256
273
needs :
257
274
- build
258
275
- test
259
276
- test-cachix
260
277
- test-overwrite-nix-dir
278
+ - test-nix-config-eval
261
279
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
262
280
steps :
263
281
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 15
15
nixpkgs-nix-2_0_4 . flake = false ;
16
16
} ;
17
17
18
+ nixConfig = {
19
+ # We set some dummy Nix config here so we can use it for verification in our
20
+ # CI test
21
+ stalled-download-timeout = 333 ; # default 300
22
+ } ;
23
+
18
24
outputs = {
19
25
self ,
20
26
flake-utils ,
You can’t perform that action at this time.
0 commit comments