about summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-02-12 15:11:32 +0000
committerbors <bors@rust-lang.org>2020-02-12 15:11:32 +0000
commiteaed72f5372874622b32eb0138bcd56bab01a25a (patch)
treed1297458d824fac7d4a22ce1ecf758982444de13 /.github/workflows
parent15c7841de09bbc0c91b18c029cf9dfe535dac99e (diff)
parentb755a7d714c40176958bf9a3da7896b50bebef47 (diff)
downloadrust-eaed72f5372874622b32eb0138bcd56bab01a25a.tar.gz
rust-eaed72f5372874622b32eb0138bcd56bab01a25a.zip
Auto merge of #5165 - matthiaskrgr:ci_cargo_cache_autoclean, r=flip1995
gha: install cargo-cache with ci-autoclean feature which speeds up build time by a large margin.

changelog: none
Diffstat (limited to '.github/workflows')
-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