on master help sign in
wip
254e090iko
.github/actions/nix_cache/action.yaml+15
@@ -11,10 +11,18 @@ inputs:
11runs:
11runs:
12 using: "composite"
12 using: "composite"
13 steps:
13 steps:
14+ - name: Install Nix
15+ uses: cachix/install-nix-action@v16
16+ with:
17+ extra_nix_config: |
18+ system-features = kvm
19+ trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
20+ substituters = https://hydra.iohk.io https://cache.nixos.org/
14 - name: make nix store writable
21 - name: make nix store writable
15 shell: bash
22 shell: bash
16 run: |
23 run: |
17 sudo chown -R $USER /nix
24 sudo chown -R $USER /nix
25+ sudo rm -rf /nix/*
18 - name: Cache Nix
26 - name: Cache Nix
19 id: cache-nix
27 id: cache-nix
20 uses: actions/cache@v2.1.7
28 uses: actions/cache@v2.1.7
@@ -23,6 +31,13 @@ runs:
23 /nix
31 /nix
24 key: ${{ inputs.key }}
32 key: ${{ inputs.key }}
25 restore-keys: ${{ inputs.restore-keys }}
33 restore-keys: ${{ inputs.restore-keys }}
34+ - name: Install Nix
35+ uses: cachix/install-nix-action@v16
36+ with:
37+ extra_nix_config: |
38+ system-features = kvm
39+ trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
40+ substituters = https://hydra.iohk.io https://cache.nixos.org/
26 # - name: Move nix store
41 # - name: Move nix store
27 # shell: bash
42 # shell: bash
28 # run: |
43 # run: |