Fix the path for cache action

This commit is contained in:
Jonas Bushart
2022-12-05 20:06:33 +00:00
parent 88907a355a
commit a1194263c1
2 changed files with 9 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
* Fix the path to the cargo installation directory to fix caching.
## [1.1.2] - 2022-11-09
### Changed

View File

@@ -26,13 +26,17 @@ inputs:
runs:
using: composite
steps:
- name: Identify cargo installation directory
run: echo "cargohome=${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_OUTPUT
shell: bash
id: cargo-home
- uses: actions/cache@v3
id: cache
with:
path: |
${{ env.CARGO_HOME }}/.cargo/bin/cargo-audit*
${{ env.CARGO_HOME }}/.cargo/.crates.toml
${{ env.CARGO_HOME }}/.cargo/.crates2.json
${{ steps.cargo-home.outputs.cargohome }}/bin/cargo-audit*
${{ steps.cargo-home.outputs.cargohome }}/.crates.toml
${{ steps.cargo-home.outputs.cargohome }}/.crates2.json
key: cargo-audit-v0.17.4
- name: Install cargo-audit