about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-02-12 14:02:38 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-02-12 15:40:49 +0100
commitb755a7d714c40176958bf9a3da7896b50bebef47 (patch)
treebda3c8fc9feb2b2f7d982d87beff4552900c08c9
parent2432a16973bf50665f75cb3e56cab1611bd96ec0 (diff)
downloadrust-b755a7d714c40176958bf9a3da7896b50bebef47.tar.gz
rust-b755a7d714c40176958bf9a3da7896b50bebef47.zip
gha: install cargo-cache with ci-autoclean feature which speeds up build time by a large margin.
-rw-r--r--.github/workflows/clippy.yml5
-rw-r--r--.github/workflows/clippy_bors.yml15
2 files changed, 8 insertions, 12 deletions
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml
index 6a9f64e88bd..8edf0c23860 100644
--- a/.github/workflows/clippy.yml
+++ b/.github/workflows/clippy.yml
@@ -95,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
diff --git a/.github/workflows/clippy_bors.yml b/.github/workflows/clippy_bors.yml
index f77350f09b9..a4f7b64cb6a 100644
--- a/.github/workflows/clippy_bors.yml
+++ b/.github/workflows/clippy_bors.yml
@@ -163,9 +163,8 @@ jobs:
     # Cleanup
     - name: Run cargo-cache --autoclean
       run: |
-        cargo +nightly install cargo-cache --debug
-        /usr/bin/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
       shell: bash
   integration_build:
     needs: changelog
@@ -222,9 +221,8 @@ 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
   integration:
     needs: integration_build
     strategy:
@@ -300,9 +298,8 @@ 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
 
   # These jobs doesn't actually test anything, but they're only used to tell
   # bors the build completed, as there is no practical way to detect when a