From b755a7d714c40176958bf9a3da7896b50bebef47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 12 Feb 2020 14:02:38 +0100 Subject: [PATCH] gha: install cargo-cache with ci-autoclean feature which speeds up build time by a large margin. --- .github/workflows/clippy.yml | 5 ++--- .github/workflows/clippy_bors.yml | 15 ++++++--------- 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