@@ -32,16 +32,33 @@ jobs:
32
32
derivation : base-lib
33
33
steps :
34
34
- uses : actions/checkout@v3
35
- - uses : cachix/install-nix-action@v22
36
- - uses : DeterminateSystems/magic-nix-cache-action@v2
35
+ - uses : nixbuild/nix-quick-install-action@v30
36
+ with :
37
+ nix_conf : |
38
+ keep-env-derivations = true
39
+ keep-outputs = true
40
+ - name : Restore and save Nix store
41
+ uses : nix-community/cache-nix-action@v6
42
+ with :
43
+ # restore and save a cache using this key
44
+ primary-key : nix-${{ matrix.derivation }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
37
45
- run : nix build .#${{ matrix.derivation }} --print-build-logs
38
46
39
47
nix-shell :
40
48
name : " Test building inside a nix shell"
41
49
runs-on : ubuntu-latest
42
50
steps :
43
51
- uses : actions/checkout@v3
44
- - uses : cachix/install-nix-action@v22
45
- - uses : DeterminateSystems/magic-nix-cache-action@v2
46
- # for some reason this doesn't work without update, even though it doesn't download anything
47
- - run : nix develop -Lv -c bash -c "cabal update; cabal v1-build"
52
+ - uses : nixbuild/nix-quick-install-action@v30
53
+ with :
54
+ nix_conf : |
55
+ keep-env-derivations = true
56
+ keep-outputs = true
57
+ - name : Restore and save Nix store
58
+ uses : nix-community/cache-nix-action@v6
59
+ with :
60
+ primary-key : nix-devshell-${{ hashFiles('**/*.nix', '**/flake.lock') }}
61
+ - name : drop into the devshell and run cabal
62
+ # for some reason this doesn't work without update
63
+ # even though it doesn't actually download anything
64
+ run : nix develop -Lv -c bash -c "cabal update; cabal v1-build"
0 commit comments