diff options
author | Aleksey Kladov <[email protected]> | 2020-03-16 16:57:07 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-16 17:17:53 +0000 |
commit | a69118edd59c5e19ab58fde5af10a9d115d0fd75 (patch) | |
tree | 9064690319ec3575eed1e977a0f0385d7a748bd6 /.github/workflows/ci.yaml | |
parent | 3ba5845edd462bf768597bca5be7433f8361f5ec (diff) |
Fix cargo audit caching
See
https://github.com/actions/cache/issues/133#issuecomment-599102035
for chown bit
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r-- | .github/workflows/ci.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dbfa85b20..4b9c4c805 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -29,9 +29,10 @@ jobs: | |||
29 | - name: Cache cargo | 29 | - name: Cache cargo |
30 | uses: actions/cache@v1 | 30 | uses: actions/cache@v1 |
31 | with: | 31 | with: |
32 | path: ~/.cargo | 32 | path: ~/.cargo/ |
33 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | 33 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
34 | 34 | ||
35 | - run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/ | ||
35 | - run: cargo install cargo-audit | 36 | - run: cargo install cargo-audit |
36 | - run: cargo audit | 37 | - run: cargo audit |
37 | 38 | ||