on master help sign in
Switch back to /nix/store
bbe6d1fiko
.github/actions/nix_cache/action.yaml+3−3
@@ -16,7 +16,7 @@ runs:
16 uses: actions/cache@v2.1.7
16 uses: actions/cache@v2.1.7
17 with:
17 with:
18 path: |
18 path: |
19− ~/nix
19+ ~/nix/store
20 key: ${{ inputs.key }}
20 key: ${{ inputs.key }}
21 restore-keys: ${{ inputs.restore-keys }}
21 restore-keys: ${{ inputs.restore-keys }}
22 - name: Move nix store
22 - name: Move nix store
@@ -25,6 +25,6 @@ runs:
25 CACHE_HIT: ${{ steps.cache-nix.outputs.cache-hit }}
25 CACHE_HIT: ${{ steps.cache-nix.outputs.cache-hit }}
26 run: |
26 run: |
27 if [[ "$CACHE_HIT" == 'true' ]]; then
27 if [[ "$CACHE_HIT" == 'true' ]]; then
28− sudo mkdir -p /nix
28+ sudo mkdir -p /nix/store
29− sudo mv -f ~/nix/* /nix/
29+ sudo mv -f ~/nix/store/* /nix/store/
30 fi
30 fi
.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
9+ mkdir -p ~/nix/store
10− sudo mv -f /nix/* ~/nix/
10+ sudo mv -f /nix/store/* ~/nix/store/