From a69118edd59c5e19ab58fde5af10a9d115d0fd75 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 16 Mar 2020 17:57:07 +0100 Subject: Fix cargo audit caching See https://github.com/actions/cache/issues/133#issuecomment-599102035 for chown bit --- .github/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github') 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: - 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 -- cgit v1.2.3