Skip to content

Commit 8049a75

Browse files
committed
ci: use cargo-ci-clean-cache
1 parent 0dd810e commit 8049a75

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

.github/workflows/ci-post-merge.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,14 @@ jobs:
5252
timeout-minutes: 40
5353
run: cargo ci-test
5454

55-
- name: Clear the cargo caches
56-
run: |
57-
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
58-
cargo-cache
55+
- name: Install cargo-ci-cache-clean
56+
uses: taiki-e/[email protected]
57+
with:
58+
tool: cargo-ci-cache-clean
59+
60+
- name: CI cache clean
61+
run: cargo-ci-cache-clean
62+
5963

6064
build_and_test_other_nightly:
6165
strategy:
@@ -94,7 +98,10 @@ jobs:
9498
timeout-minutes: 40
9599
run: cargo ci-test --exclude=actix-redis --exclude=actix-session --exclude=actix-limitation -- --nocapture
96100

97-
- name: Clear the cargo caches
98-
run: |
99-
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
100-
cargo-cache
101+
- name: Install cargo-ci-cache-clean
102+
uses: taiki-e/[email protected]
103+
with:
104+
tool: cargo-ci-cache-clean
105+
106+
- name: CI cache clean
107+
run: cargo-ci-cache-clean

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,13 @@ jobs:
7171
timeout-minutes: 40
7272
run: cargo ci-test
7373

74-
- name: Clear the cargo caches
75-
run: |
76-
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
77-
cargo-cache
74+
- name: Install cargo-ci-cache-clean
75+
uses: taiki-e/[email protected]
76+
with:
77+
tool: cargo-ci-cache-clean
78+
79+
- name: CI cache clean
80+
run: cargo-ci-cache-clean
7881

7982
build_and_test_other:
8083
strategy:
@@ -122,10 +125,13 @@ jobs:
122125
timeout-minutes: 40
123126
run: cargo ci-test --exclude=actix-redis --exclude=actix-session --exclude=actix-limitation
124127

125-
- name: Clear the cargo caches
126-
run: |
127-
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
128-
cargo-cache
128+
- name: Install cargo-ci-cache-clean
129+
uses: taiki-e/[email protected]
130+
with:
131+
tool: cargo-ci-cache-clean
132+
133+
- name: CI cache clean
134+
run: cargo-ci-cache-clean
129135

130136
doc_tests:
131137
name: doc tests

0 commit comments

Comments
 (0)