]> git.lizzy.rs Git - rust.git/commitdiff
Fix cargo audit caching
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 16 Mar 2020 16:57:07 +0000 (17:57 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 16 Mar 2020 17:17:53 +0000 (18:17 +0100)
See
https://github.com/actions/cache/issues/133#issuecomment-599102035
for chown bit

.github/workflows/ci.yaml

index dbfa85b2088e10cb8b1f00bb846fad1e74bb9978..4b9c4c8052a1937e5e8a8111c98a5620a2aa1328 100644 (file)
@@ -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