on master help sign in
Cache full nix
4039761iko
.github/actions/nix_cache/action.yaml+5−5
@@ -12,7 +12,7 @@ runs:
12 uses: actions/cache@v2.1.7
12 uses: actions/cache@v2.1.7
13 with:
13 with:
14 path: |
14 path: |
15− ~/nix/store
15+ ~/nix
16 key: ${{ inputs.key }}
16 key: ${{ inputs.key }}
17 - name: Move nix store
17 - name: Move nix store
18 shell: bash
18 shell: bash
@@ -20,12 +20,12 @@ runs:
20 CACHE_HIT: ${{ steps.cache-nix.outputs.cache-hit }}
20 CACHE_HIT: ${{ steps.cache-nix.outputs.cache-hit }}
21 run: |
21 run: |
22 if [[ "$CACHE_HIT" == 'true' ]]; then
22 if [[ "$CACHE_HIT" == 'true' ]]; then
23− sudo mkdir -p /nix/store
23+ sudo mkdir -p /nix
24− sudo mv -f ~/nix/store/* /nix/store/
24+ sudo mv -f ~/nix/* /nix/
25 fi
25 fi
26 - name: Move nix store post
26 - name: Move nix store post
27 uses: ilyakooo0/github-composite-action-pre-post@1.0.0
27 uses: ilyakooo0/github-composite-action-pre-post@1.0.0
28 with:
28 with:
29 post: |
29 post: |
30− mkdir -p ~/nix/store
30+ mkdir -p ~/nix
31− sudo mv -f /nix/store/* ~/nix/store/
31+ sudo mv -f /nix/* ~/nix/