Skip to content

Commit

Permalink
Auto merge of rust-lang#5165 - matthiaskrgr:ci_cargo_cache_autoclean,…
Browse files Browse the repository at this point in the history
… r=flip1995

gha: install cargo-cache with ci-autoclean feature which speeds up build time by a large margin.

changelog: none
  • Loading branch information
bors committed Feb 12, 2020
2 parents 15c7841 + b755a7d commit eaed72f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 6 additions & 9 deletions .github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eaed72f

Please sign in to comment.