1111 runs-on : ubuntu-latest
1212 steps :
1313 # ...
14- - uses : moonrepo/setup-rust@v0
14+ - uses : moonrepo/setup-rust@v1
1515 - run : cargo test
1616` ` `
1717
@@ -51,7 +51,7 @@ The toolchain/channel can also be explicitly configured with the `channel` input
5151highest precedence.
5252
5353` ` ` yaml
54- - uses: moonrepo/setup-rust@v0
54+ - uses: moonrepo/setup-rust@v1
5555 with:
5656 channel: '1.65.0'
5757` ` `
@@ -63,15 +63,15 @@ with the `profile`, `components`, and `targets` inputs respectively. When not de
6363defaults to `minimal`.
6464
6565` ` ` yaml
66- - uses: moonrepo/setup-rust@v0
66+ - uses: moonrepo/setup-rust@v1
6767 with:
6868 profile: complete
6969` ` `
7070
7171When using components, the input requires a comma separated list of component names.
7272
7373` ` ` yaml
74- - uses: moonrepo/setup-rust@v0
74+ - uses: moonrepo/setup-rust@v1
7575 with:
7676 components: clippy
7777- run: cargo clippy --workspace
@@ -80,7 +80,7 @@ When using components, the input requires a comma separated list of component na
8080When using targets, the input requires a comma separated list of target triples.
8181
8282` ` ` yaml
83- - uses: moonrepo/setup-rust@v0
83+ - uses: moonrepo/setup-rust@v1
8484 with:
8585 targets: 'x86_64-pc-windows-msvc,x86_64-pc-windows-gnu'
8686` ` `
@@ -92,13 +92,15 @@ installing Cargo binaries through the `bins` input, which requires a comma-separ
9292names.
9393
9494` ` ` yaml
95- - uses: moonrepo/setup-rust@v0
95+ - uses: moonrepo/setup-rust@v1
9696 with:
9797 bins: cargo-nextest, [email protected] 98+ env:
99+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98100` ` `
99101
100102> Binaries are installed with [`cargo-binstall`](https://crates.io/crates/cargo-binstall) under the
101- > hood.
103+ > hood. We suggest setting `GITHUB_TOKEN` to avoid rate limiting.
102104
103105# # Caching in CI
104106
@@ -107,7 +109,7 @@ CI times. To disable caching, set the `cache` input to `false`. Furthermore, the
107109be changed with the `cache-target` input, which defaults to `debug`.
108110
109111` ` ` yaml
110- - uses: moonrepo/setup-rust@v0
112+ - uses: moonrepo/setup-rust@v1
111113 with:
112114 cache: false
113115 cache-target: release
@@ -147,11 +149,6 @@ Outside of being evergreen, this action also supports the following features:
147149- Assumes `rustup`, `cargo`, and other commands are available globally. This allows you to use them
148150 directly in a `run` command, without having to use `actions-rs/cargo`.
149151
150- However, this action _does not_ :
151-
152- - Install `rustup` if it does not exist, while `actions-rs` will. This is typically fine if using
153- GitHub provided runners as all Rust tooling comes pre-installed.
154-
155152# ## `dtolnay/rust-toolchain`
156153
157154Our action is very similar to theirs, which was a great implementation reference, but our action
0 commit comments