mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-06-21 10:06:37 +00:00
Output rustc, cargo and rustup versions as Action outputs (#47)
This commit is contained in:
parent
ad7f1a0189
commit
5d50a12f35
4 changed files with 95 additions and 1 deletions
14
README.md
14
README.md
|
@ -48,6 +48,20 @@ See [additional recipes here](https://github.com/actions-rs/meta).
|
|||
| `profile` | | Execute `rustup set profile {value}` before installing the toolchain, ex. `minimal` | string | |
|
||||
| `components` | | Comma-separated list of the additional components to install, ex. `clippy, rustfmt` | string | |
|
||||
|
||||
## Outputs
|
||||
|
||||
Installed `rustc`, `cargo` and `rustup` versions can be fetched from the Action outputs:
|
||||
|
||||
| Name | Description | Example |
|
||||
| ------------ | --------------------- | ------------------------------- |
|
||||
| `rustc` | Rustc version | `1.40.0 (73528e339 2019-12-16)` |
|
||||
| `rustc-hash` | Rustc version hash | `73528e339` |
|
||||
| `cargo` | Cargo version | `1.40.0 (bc8e4c8be 2019-11-22)` |
|
||||
| `rustup` | rustup version | `1.21.1 (7832b2ebe 2019-12-20)` |
|
||||
|
||||
Note: `rustc-hash` output value can be used with [actions/cache](https://github.com/actions/cache) Action
|
||||
to store cache for different Rust versions, as it is unique across different Rust versions and builds (including `nightly`).
|
||||
|
||||
## Profiles
|
||||
|
||||
This Action supports rustup [profiles](https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html#profiles),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue