on master help sign in
Cache full nix
commit403976188ff8dfab3b731411e5771e60a2cc59db authoriko <ilyakooo0@gmail.com> dateTue 21 Dec 2021, 20:30 (5 years ago) parent87f7b1d
1 file changed+5−5
.github/actions/nix_cache/action.yaml+5−5
.github/actions/nix_cache/action.yaml+5−5
@@ -12,7 +12,7 @@ runs:
1212 uses: actions/cache@v2.1.7
1313 with:
1414 path: |
15− ~/nix/store
15+ ~/nix
1616 key: ${{ inputs.key }}
1717 - name: Move nix store
1818 shell: bash
@@ -20,12 +20,12 @@ runs:
2020 CACHE_HIT: ${{ steps.cache-nix.outputs.cache-hit }}
2121 run: |
2222 if [[ "$CACHE_HIT" == 'true' ]]; then
23− sudo mkdir -p /nix/store
24− sudo mv -f ~/nix/store/* /nix/store/
23+ sudo mkdir -p /nix
24+ sudo mv -f ~/nix/* /nix/
2525 fi
2626 - name: Move nix store post
2727 uses: ilyakooo0/github-composite-action-pre-post@1.0.0
2828 with:
2929 post: |
30− mkdir -p ~/nix/store
31− sudo mv -f /nix/store/* ~/nix/store/
30+ mkdir -p ~/nix
31+ sudo mv -f /nix/* ~/nix/