Output rustc, cargo and rustup versions as Action outputs

This commit is contained in:
svartalf 2020-01-24 15:10:57 +03:00
parent ad7f1a0189
commit 661772c5dc
4 changed files with 91 additions and 1 deletions

View file

@ -48,6 +48,16 @@ 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 | Example |
| -------- | ------------------------------- |
| `rustc` | `1.40.0 (73528e339 2019-12-16)` |
| `cargo` | `1.40.0 (bc8e4c8be 2019-11-22)` |
| `rustup` | `1.21.1 (7832b2ebe 2019-12-20)` |
## Profiles
This Action supports rustup [profiles](https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html#profiles),