mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 05:20:02 +00:00
breaking: Rework bins setting.
This commit is contained in:
parent
6e8ea78761
commit
cef1bc3f53
3 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
# 0.6.0
|
||||||
|
|
||||||
|
- Breaking: Cargo `bins` must provide the `cargo-` crate prefix manually. This change allows
|
||||||
|
non-crate globals to be installed.
|
||||||
|
|
||||||
# 0.5.0
|
# 0.5.0
|
||||||
|
|
||||||
- Added `inherit-toolchain` input to inherit all settings from `rust-toolchain.toml`, and not just
|
- Added `inherit-toolchain` input to inherit all settings from `rust-toolchain.toml`, and not just
|
||||||
|
|
|
@ -65,12 +65,12 @@ When using components, the input requires a comma separated list of component na
|
||||||
|
|
||||||
If you require `cargo-make`, `cargo-nextest`, or other global binaries, this action supports
|
If you require `cargo-make`, `cargo-nextest`, or other global binaries, this action supports
|
||||||
installing Cargo binaries through the `bins` input, which requires a comma-separated list of crate
|
installing Cargo binaries through the `bins` input, which requires a comma-separated list of crate
|
||||||
names (`cargo-` prefix optional).
|
names.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: moonrepo/setup-rust@v0
|
- uses: moonrepo/setup-rust@v0
|
||||||
with:
|
with:
|
||||||
bins: nextest, cargo-insta@1.28.0
|
bins: cargo-nextest, cargo-insta@1.28.0
|
||||||
```
|
```
|
||||||
|
|
||||||
> Binaries are installed with [`cargo-binstall`](https://crates.io/crates/cargo-binstall) under the
|
> Binaries are installed with [`cargo-binstall`](https://crates.io/crates/cargo-binstall) under the
|
||||||
|
|
|
@ -62,8 +62,7 @@ export async function installBins() {
|
||||||
.getInput('bins')
|
.getInput('bins')
|
||||||
.split(',')
|
.split(',')
|
||||||
.map((bin) => bin.trim())
|
.map((bin) => bin.trim())
|
||||||
.filter(Boolean)
|
.filter(Boolean);
|
||||||
.map((bin) => (bin.startsWith('cargo-') ? bin : `cargo-${bin}`));
|
|
||||||
|
|
||||||
if (CACHE_ENABLED) {
|
if (CACHE_ENABLED) {
|
||||||
bins.push('cargo-cache');
|
bins.push('cargo-cache');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue