Skip to content

Commit b755a7d

Browse files
committed
gha: install cargo-cache with ci-autoclean feature which speeds up build time by a large margin.
1 parent 2432a16 commit b755a7d

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/clippy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,5 @@ jobs:
9595
# Cleanup
9696
- name: Run cargo-cache --autoclean
9797
run: |
98-
cargo +nightly install cargo-cache --debug
99-
find ~/.cargo/bin ! -type d -exec strip {} \;
100-
cargo cache --autoclean
98+
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
99+
cargo cache

.github/workflows/clippy_bors.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,8 @@ jobs:
163163
# Cleanup
164164
- name: Run cargo-cache --autoclean
165165
run: |
166-
cargo +nightly install cargo-cache --debug
167-
/usr/bin/find ~/.cargo/bin ! -type d -exec strip {} \;
168-
cargo cache --autoclean
166+
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
167+
cargo cache
169168
shell: bash
170169
integration_build:
171170
needs: changelog
@@ -222,9 +221,8 @@ jobs:
222221
# Cleanup
223222
- name: Run cargo-cache --autoclean
224223
run: |
225-
cargo +nightly install cargo-cache --debug
226-
find ~/.cargo/bin ! -type d -exec strip {} \;
227-
cargo cache --autoclean
224+
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
225+
cargo cache
228226
integration:
229227
needs: integration_build
230228
strategy:
@@ -300,9 +298,8 @@ jobs:
300298
# Cleanup
301299
- name: Run cargo-cache --autoclean
302300
run: |
303-
cargo +nightly install cargo-cache --debug
304-
find ~/.cargo/bin ! -type d -exec strip {} \;
305-
cargo cache --autoclean
301+
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
302+
cargo cache
306303
307304
# These jobs doesn't actually test anything, but they're only used to tell
308305
# bors the build completed, as there is no practical way to detect when a

0 commit comments

Comments
 (0)