]> git.lizzy.rs Git - rust.git/blobdiff - .github/workflows/clippy.yml
Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2
[rust.git] / .github / workflows / clippy.yml
index 0d7d2929000b2fb14e1feef4d7755f8f184aca6d..5fa8009a8b42c8fad795d61114ad70deacdcd5fc 100644 (file)
@@ -3,7 +3,9 @@ name: Clippy Test
 on:
   push:
     # Ignore bors branches, since they are covered by `clippy_bors.yml`
-    branches-ignore: [auto, try]
+    branches-ignore:
+      - auto
+      - try
     # Don't run Clippy tests, when only textfiles were modified
     paths-ignore:
     - 'COPYRIGHT'
@@ -47,7 +49,7 @@ jobs:
       run: cargo update
 
     - name: Cache cargo dir
-      uses: actions/cache@v1
+      uses: actions/cache@v2
       with:
         path: ~/.cargo
         key: ${{ runner.os }}-x86_64-unknown-linux-gnu-${{ hashFiles('Cargo.lock') }}
@@ -93,6 +95,5 @@ jobs:
     # Cleanup
     - name: Run cargo-cache --autoclean
       run: |
-        cargo +nightly install cargo-cache --debug
-        find ~/.cargo/bin ! -type d -exec strip {} \;
-        cargo cache --autoclean
+        cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
+        cargo cache