on master help sign in
wip
0fdc68aiko
.github/actions/common_setup/action.yaml+5−6
@@ -10,11 +10,6 @@ inputs:
10runs:
10runs:
11 using: "composite"
11 using: "composite"
12 steps:
12 steps:
13− - name: Cache Nix
14− uses: ./.github/actions/nix_cache
15− with:
16− key: ${{ inputs.key }}
17− restore-keys: ${{ inputs.restore-keys }}
18 - name: Install Nix
13 - name: Install Nix
19 uses: cachix/install-nix-action@v16
14 uses: cachix/install-nix-action@v16
20 with:
15 with:
@@ -22,4 +17,8 @@ runs:
22 system-features = kvm
17 system-features = kvm
23 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
18 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
24 substituters = https://hydra.iohk.io https://cache.nixos.org/
19 substituters = https://hydra.iohk.io https://cache.nixos.org/
25−
20+ - name: Cache Nix
21+ uses: ./.github/actions/nix_cache
22+ with:
23+ key: ${{ inputs.key }}
24+ restore-keys: ${{ inputs.restore-keys }}
.github/actions/nix_cache/action.yaml+1−2
@@ -14,8 +14,7 @@ runs:
14 - name: make nix store writable
14 - name: make nix store writable
15 shell: bash
15 shell: bash
16 run: |
16 run: |
17− sudo mkdir /nix
18− sudo chmod +w /nix
17+ sudo chmod +w /nix/store
19 - name: Cache Nix
18 - name: Cache Nix
20 id: cache-nix
19 id: cache-nix
21 uses: actions/cache@v2.1.7
20 uses: actions/cache@v2.1.7