Fix cargo audit caching
See https://github.com/actions/cache/issues/133#issuecomment-599102035 for chown bit
This commit is contained in:
parent
3ba5845edd
commit
a69118edd5
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -29,9 +29,10 @@ jobs:
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo
|
||||
path: ~/.cargo/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||
- run: cargo install cargo-audit
|
||||
- run: cargo audit
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user