mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 21:40:01 +00:00
Add autoclean.
This commit is contained in:
parent
8cbd5dda6b
commit
293503e099
2 changed files with 9 additions and 0 deletions
4
index.ts
4
index.ts
|
@ -171,6 +171,10 @@ async function installBins() {
|
|||
.filter(Boolean)
|
||||
.map((bin) => (bin.startsWith('cargo-') ? bin : `cargo-${bin}`));
|
||||
|
||||
if (core.getBooleanInput('cache')) {
|
||||
bins.push('cargo-cache');
|
||||
}
|
||||
|
||||
if (bins.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue