mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 13:30:03 +00:00
Fix examples.
This commit is contained in:
parent
f15a249d24
commit
c5f1dc6e9e
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
@ -11,7 +11,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# ...
|
||||
- uses: moonrepo/setup-rust@v0
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
- run: cargo test
|
||||
```
|
||||
|
||||
|
@ -51,7 +51,7 @@ The toolchain/channel can also be explicitly configured with the `channel` input
|
|||
highest precedence.
|
||||
|
||||
```yaml
|
||||
- uses: moonrepo/setup-rust@v0
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
channel: '1.65.0'
|
||||
```
|
||||
|
@ -63,7 +63,7 @@ with the `profile`, `components`, and `targets` inputs respectively. When not de
|
|||
defaults to `minimal`.
|
||||
|
||||
```yaml
|
||||
- uses: moonrepo/setup-rust@v0
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
profile: complete
|
||||
```
|
||||
|
@ -71,7 +71,7 @@ defaults to `minimal`.
|
|||
When using components, the input requires a comma separated list of component names.
|
||||
|
||||
```yaml
|
||||
- uses: moonrepo/setup-rust@v0
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
components: clippy
|
||||
- run: cargo clippy --workspace
|
||||
|
@ -80,7 +80,7 @@ When using components, the input requires a comma separated list of component na
|
|||
When using targets, the input requires a comma separated list of target triples.
|
||||
|
||||
```yaml
|
||||
- uses: moonrepo/setup-rust@v0
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
targets: 'x86_64-pc-windows-msvc,x86_64-pc-windows-gnu'
|
||||
```
|
||||
|
@ -92,7 +92,7 @@ installing Cargo binaries through the `bins` input, which requires a comma-separ
|
|||
names.
|
||||
|
||||
```yaml
|
||||
- uses: moonrepo/setup-rust@v0
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
bins: cargo-nextest, cargo-insta@1.28.0
|
||||
```
|
||||
|
@ -107,7 +107,7 @@ CI times. To disable caching, set the `cache` input to `false`. Furthermore, the
|
|||
be changed with the `cache-target` input, which defaults to `debug`.
|
||||
|
||||
```yaml
|
||||
- uses: moonrepo/setup-rust@v0
|
||||
- uses: moonrepo/setup-rust@v1
|
||||
with:
|
||||
cache: false
|
||||
cache-target: release
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue