mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-04 20:20:30 +00:00
Support +<additional> syntax for rust
This commit is contained in:
21
README.md
21
README.md
@@ -58,6 +58,17 @@ You can also omit patch version.
|
||||
tool: cargo-hack@0.5
|
||||
```
|
||||
|
||||
For some tools, we support installing additional components at the same time by `+<additional>` syntax:
|
||||
|
||||
```yaml
|
||||
- uses: taiki-e/install-action@v2
|
||||
with:
|
||||
# Install rust stable with rustfmt component and wasm32-wasip1 target.
|
||||
tool: rust+rustfmt+wasm32-wasip1
|
||||
# When installing another rust version:
|
||||
# tool: rust@nightly + rustfmt + wasm32-wasip1
|
||||
```
|
||||
|
||||
To install multiple tools:
|
||||
|
||||
```yaml
|
||||
@@ -73,6 +84,16 @@ Or:
|
||||
- uses: taiki-e/install-action@cargo-minimal-versions
|
||||
```
|
||||
|
||||
Tool names can also be separated with whitespaces (line, space, tab).
|
||||
|
||||
```yaml
|
||||
- uses: taiki-e/install-action@v2
|
||||
with:
|
||||
tool: |
|
||||
cargo-hack
|
||||
cargo-minimal-versions
|
||||
```
|
||||
|
||||
## Supported tools
|
||||
|
||||
See [TOOLS.md](TOOLS.md) for the list of tools that are installed from manifests managed in this action.
|
||||
|
||||
Reference in New Issue
Block a user