ci: fix Rust cache (#9377)

This commit is contained in:
Brooooooklyn
2024-12-27 09:59:29 +00:00
parent 6da10f9a93
commit 12bfbf1db0
2 changed files with 14 additions and 12 deletions

View File

@@ -34,15 +34,10 @@ runs:
echo "TARGET_CC=clang" >> "$GITHUB_ENV"
- name: Cache cargo
uses: actions/cache@v4
uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.napi-rs
target/${{ inputs.target }}
key: stable-${{ inputs.target }}-cargo-cache
save-if: ${{ github.ref_name == 'canary' }}
shared-key: ${{ inputs.target }}-inputs.package
- name: Build
shell: bash
run: |