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
This commit is contained in:
bors 2020-02-12 15:11:32 +00:00
commit eaed72f537
2 changed files with 8 additions and 12 deletions

View File

@ -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

View File

@ -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