@@ -32,16 +32,33 @@ jobs:
3232 derivation : base-lib
3333 steps :
3434 - 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') }}
3745 - run : nix build .#${{ matrix.derivation }} --print-build-logs
3846
3947 nix-shell :
4048 name : " Test building inside a nix shell"
4149 runs-on : ubuntu-latest
4250 steps :
4351 - 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