Skip to content

Commit a0a21a8

Browse files
committed
Use nightly cargo to install cargo-cache
Stable cargo install still errors when packages exists, instead of updating it
1 parent 2745346 commit a0a21a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/clippy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ jobs:
9393
# Cleanup
9494
- name: Run cargo-cache --autoclean
9595
run: |
96-
cargo install cargo-cache --debug
96+
cargo +nightly install cargo-cache --debug
9797
find ~/.cargo/bin ! -type d -exec strip {} \;
9898
cargo cache --autoclean

.github/workflows/clippy_bors.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
# Cleanup
162162
- name: Run cargo-cache --autoclean
163163
run: |
164-
cargo install cargo-cache --debug
164+
cargo +nightly install cargo-cache --debug
165165
/usr/bin/find ~/.cargo/bin ! -type d -exec strip {} \;
166166
cargo cache --autoclean
167167
shell: bash
@@ -219,7 +219,7 @@ jobs:
219219
# Cleanup
220220
- name: Run cargo-cache --autoclean
221221
run: |
222-
cargo install cargo-cache --debug
222+
cargo +nightly install cargo-cache --debug
223223
find ~/.cargo/bin ! -type d -exec strip {} \;
224224
cargo cache --autoclean
225225
integration:
@@ -297,7 +297,7 @@ jobs:
297297
# Cleanup
298298
- name: Run cargo-cache --autoclean
299299
run: |
300-
cargo install cargo-cache --debug
300+
cargo +nightly install cargo-cache --debug
301301
find ~/.cargo/bin ! -type d -exec strip {} \;
302302
cargo cache --autoclean
303303

0 commit comments

Comments
 (0)