Fix examples.

This commit is contained in:
Miles Johnson 2023-08-01 14:57:29 -07:00
parent f15a249d24
commit c5f1dc6e9e

View file

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# ... # ...
- uses: moonrepo/setup-rust@v0 - uses: moonrepo/setup-rust@v1
- run: cargo test - run: cargo test
``` ```
@ -51,7 +51,7 @@ The toolchain/channel can also be explicitly configured with the `channel` input
highest precedence. highest precedence.
```yaml ```yaml
- uses: moonrepo/setup-rust@v0 - uses: moonrepo/setup-rust@v1
with: with:
channel: '1.65.0' channel: '1.65.0'
``` ```
@ -63,7 +63,7 @@ with the `profile`, `components`, and `targets` inputs respectively. When not de
defaults to `minimal`. defaults to `minimal`.
```yaml ```yaml
- uses: moonrepo/setup-rust@v0 - uses: moonrepo/setup-rust@v1
with: with:
profile: complete profile: complete
``` ```
@ -71,7 +71,7 @@ defaults to `minimal`.
When using components, the input requires a comma separated list of component names. When using components, the input requires a comma separated list of component names.
```yaml ```yaml
- uses: moonrepo/setup-rust@v0 - uses: moonrepo/setup-rust@v1
with: with:
components: clippy components: clippy
- run: cargo clippy --workspace - 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. When using targets, the input requires a comma separated list of target triples.
```yaml ```yaml
- uses: moonrepo/setup-rust@v0 - uses: moonrepo/setup-rust@v1
with: with:
targets: 'x86_64-pc-windows-msvc,x86_64-pc-windows-gnu' 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. names.
```yaml ```yaml
- uses: moonrepo/setup-rust@v0 - uses: moonrepo/setup-rust@v1
with: with:
bins: cargo-nextest, cargo-insta@1.28.0 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`. be changed with the `cache-target` input, which defaults to `debug`.
```yaml ```yaml
- uses: moonrepo/setup-rust@v0 - uses: moonrepo/setup-rust@v1
with: with:
cache: false cache: false
cache-target: release cache-target: release