File tree 1 file changed +24
-8
lines changed
1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,32 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
16
+
17
+ - run : |
18
+ sudo mkdir -p /nix/store
19
+ sudo chmod -R 777 /nix
20
+
21
+ - name : Cache nix env
22
+
23
+ with :
24
+ path : |
25
+ # See https://github.com/actions/cache/pull/726
26
+ /nix/store/**
27
+ # Missing something?
28
+ /nix/var/nix/*/*
29
+ /nix/var/nix/db/*
30
+ /nix/var/nix/db/*/**
31
+ !/nix/var/nix/daemon-socket/socket
32
+ !/nix/var/nix/userpool/*
33
+ !/nix/var/nix/gc.lock
34
+ !/nix/var/nix/db/big-lock
35
+ !/nix/var/nix/db/reserved
36
+ key : ${{ runner.os }}-nix-store
37
+
16
38
- uses : cachix/install-nix-action@v16
17
39
with :
18
40
nix_path : nixpkgs=channel:nixos-21.11
19
41
extra_nix_config : |
20
- trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
21
- substituters = https://hydra.iohk.io https://cache.nixos.org/
22
- - uses : cachix/cachix-action@v10
23
- with :
24
- # https://nix.dev/tutorials/continuous-integration-github-actions#setting-up-github-actions
25
- # name: mycache ## TODO should this be set to name of Cachix account?
26
- signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
27
- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
42
+ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
43
+ substituters = https://cache.nixos.org/
28
44
- run : nix-shell --pure --run "cabal update && cabal build all --enable-tests"
You can’t perform that action at this time.
0 commit comments