on master help sign in
wip
a071ce6iko
.github/actions/nix_cache/action.yaml+14−27
@@ -18,20 +18,6 @@ runs:
18 # system-features = kvm
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=
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/
20 # substituters = https://hydra.iohk.io https://cache.nixos.org/
21− - name: make nix store writable
22− shell: bash
23− run: |
24− sudo mkdir /nix
25− sudo chown -R $USER /nix
26− # sudo rm -rf /nix/*
27− - name: Cache Nix
28− id: cache-nix
29− uses: actions/cache@v2.1.7
30− with:
31− path: |
32− /nix
33− key: ${{ inputs.key }}
34− restore-keys: ${{ inputs.restore-keys }}
35 - name: Install Nix
21 - name: Install Nix
36 uses: cachix/install-nix-action@v16
22 uses: cachix/install-nix-action@v16
37 with:
23 with:
@@ -39,16 +25,17 @@ runs:
39 system-features = kvm
25 system-features = kvm
40 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
26 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
41 substituters = https://hydra.iohk.io https://cache.nixos.org/
27 substituters = https://hydra.iohk.io https://cache.nixos.org/
28+ - name: Cache Nix
29+ id: cache-nix
30+ uses: actions/cache@v2.1.7
31+ with:
32+ path: |
33+ ~/nix
34+ key: ${{ inputs.key }}
35+ restore-keys: ${{ inputs.restore-keys }}
42− # - name: Move nix store
36+ - name: make nix store writable
43− # shell: bash
37+ shell: bash
44− # run: |
38+ run: |
45− # echo
46− # ls /nix/store
47− # if [[ -d "~/nix/store/" ]]; then
39+ if [[ -d ~/nix ]]; then
48− # echo
49− # ls ~/nix/store
50− # sudo mkdir -p /nix/store
51− # sudo mv -f ~/nix/store/* /nix/store/
40+ sudo mv -f ~/nix/* /nix/*
52− # fi
41+ fi
53− # echo
54− # ls /nix/store
.github/actions/nix_cache_post/action.yaml+2−2
@@ -6,5 +6,5 @@ runs:
6 - name: Move nix store
6 - name: Move nix store
7 shell: bash
7 shell: bash
8 run: |
8 run: |
9− mkdir -p ~/nix/store
9+ mkdir -p ~/nix/
10− sudo mv -f /nix/store/* ~/nix/store/
10+ sudo mv -f /nix/* ~/nix/