Skip to content

Commit

Permalink
better caching
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed May 6, 2024
1 parent c13dc85 commit c772b34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/cargo-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ runs:
/home/runner/.cargo/registry/index/
/home/runner/.cargo/registry/cache/
/home/runner/.cargo/git/db/
key: cargo-home-${{ $inputs.key }}-${{ hashFiles($inputs.lockfiles) }}
key: cargo-home-${{ inputs.key }}-${{ hashFiles(inputs.lockfiles) }}
restore-keys: |
cargo-home-${{ $inputs.key }}-
cargo-home-${{ inputs.key }}-
- name: Cargo cache (build)
uses: actions/cache@v4
with:
path: ${{ $inputs.targets }}
key: cargo-target-${{ $inputs.key }}-${{ runner.os }}-${{ hashFiles($inputs.lockfiles) }}
path: ${{ inputs.targets }}
key: cargo-target-${{ inputs.key }}-${{ runner.os }}-${{ hashFiles(inputs.lockfiles) }}
restore-keys: |
cargo-target-${{ $inputs.key }}-${{ runner.os }}-
cargo-target-${{ inputs.key }}-${{ runner.os }}-

0 comments on commit c772b34

Please sign in to comment.