mirror of
https://github.com/actions-rs/toolchain.git
synced 2024-11-14 13:36:33 +02:00
Release v1.0.4
This commit is contained in:
parent
5d50a12f35
commit
402d025565
4 changed files with 18 additions and 5 deletions
|
@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [1.0.4] - 2020-01-26
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Support for the `rust-toolchain` file: If the toolchain input is not given, we will try and install the version specified in the `rust-toolchain` file.
|
- Support for the `rust-toolchain` file: If the toolchain input is not given, we will try and install the version specified in the `rust-toolchain` file.
|
||||||
|
- Action outputs with `rustc`, `cargo` and `rustup` versions installed
|
||||||
|
|
||||||
## [1.0.3] - 2019-10-19
|
## [1.0.3] - 2019-10-19
|
||||||
|
|
||||||
|
|
16
README.md
16
README.md
|
@ -19,7 +19,7 @@ jobs:
|
||||||
name: Rust project
|
name: Rust project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
- name: Install latest nightly
|
- name: Install latest nightly
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
@ -41,13 +41,16 @@ See [additional recipes here](https://github.com/actions-rs/meta).
|
||||||
|
|
||||||
| Name | Required | Description | Type | Default |
|
| Name | Required | Description | Type | Default |
|
||||||
| ------------ | :------: | ----------------------------------------------------------------------------------------------------------------------------------------------------| ------ | --------|
|
| ------------ | :------: | ----------------------------------------------------------------------------------------------------------------------------------------------------| ------ | --------|
|
||||||
| `toolchain` | ✓ | [Toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification) name to use, ex. `stable`, `nightly`, `nightly-2019-04-20`, or `1.32.0` | string | |
|
| `toolchain` | | [Toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification) name to use, ex. `stable`, `nightly`, `nightly-2019-04-20`, or `1.32.0` | string | |
|
||||||
| `target` | | Additionally install specified target for this toolchain, ex. `x86_64-apple-darwin` | string | |
|
| `target` | | Additionally install specified target for this toolchain, ex. `x86_64-apple-darwin` | string | |
|
||||||
| `default` | | Set installed toolchain as a default toolchain | bool | false |
|
| `default` | | Set installed toolchain as a default toolchain | bool | false |
|
||||||
| `override` | | Set installed toolchain as an override for the current directory | bool | false |
|
| `override` | | Set installed toolchain as an override for the current directory | bool | false |
|
||||||
| `profile` | | Execute `rustup set profile {value}` before installing the toolchain, ex. `minimal` | string | |
|
| `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 | |
|
| `components` | | Comma-separated list of the additional components to install, ex. `clippy, rustfmt` | string | |
|
||||||
|
|
||||||
|
Note: since `v1.0.4` version, `toolchain` input is not marked as required
|
||||||
|
in order to support toolchain files. See the details [below](#the-toolchain-file).
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
Installed `rustc`, `cargo` and `rustup` versions can be fetched from the Action outputs:
|
Installed `rustc`, `cargo` and `rustup` versions can be fetched from the Action outputs:
|
||||||
|
@ -115,6 +118,15 @@ to install the minimal set of `nightly` toolchain components with the `rustfmt`
|
||||||
Same to the `profile` input, if the installed `rustup` does not supports "components",
|
Same to the `profile` input, if the installed `rustup` does not supports "components",
|
||||||
it will be automatically upgraded by this Action.
|
it will be automatically upgraded by this Action.
|
||||||
|
|
||||||
|
## The toolchain file
|
||||||
|
|
||||||
|
This Action supports [toolchain files](https://github.com/rust-lang/rustup#the-toolchain-file),
|
||||||
|
so it is not necessary to use `toolchain` input anymore.
|
||||||
|
|
||||||
|
Input has higher priority, so if you are want to use toolchain file, you need to remove the input from the workflow file.
|
||||||
|
|
||||||
|
If neither `toolchain` input or `rust-toolchain` file are provided, Action execution will fail.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
As `rustup` is not installed by default for [macOS environments](https://help.github.com/en/articles/virtual-environments-for-github-actions)
|
As `rustup` is not installed by default for [macOS environments](https://help.github.com/en/articles/virtual-environments-for-github-actions)
|
||||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "rust-toolchain",
|
"name": "rust-toolchain",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "rust-toolchain",
|
"name": "rust-toolchain",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "Install the Rust toolchain",
|
"description": "Install the Rust toolchain",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
|
|
Loading…
Reference in a new issue