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:
commit
eaed72f537
2 changed files with 8 additions and 12 deletions
5
.github/workflows/clippy.yml
vendored
5
.github/workflows/clippy.yml
vendored
|
|
@ -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
.github/workflows/clippy_bors.yml
vendored
15
.github/workflows/clippy_bors.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue