mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2024-12-26 17:00:34 +01:00
Merge branch 'main' into allow-overriding-toolchain-file
This commit is contained in:
commit
99ab88ad00
3 changed files with 19 additions and 5 deletions
|
@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.6.0] - 2023-12-04
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Allow disabling problem matchers (#27)
|
||||||
|
This can be useful when having a matrix of jobs, that produce the same errors.
|
||||||
|
|
||||||
## [1.5.0] - 2023-05-29
|
## [1.5.0] - 2023-05-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -54,6 +54,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a
|
||||||
| `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | |
|
| `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | |
|
||||||
| `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | |
|
| `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | |
|
||||||
| `cache` | Automatically configure Rust cache (using `Swatinem/rust-cache`) | true |
|
| `cache` | Automatically configure Rust cache (using `Swatinem/rust-cache`) | true |
|
||||||
|
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
|
||||||
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
|
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
|
||||||
|
|
||||||
### RUSTFLAGS
|
### RUSTFLAGS
|
||||||
|
@ -74,10 +75,11 @@ You can read more rustflags, and their load order, in the [Cargo reference].
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ---------------- | ----------------------------------------- |
|
| ---------------- | ------------------------------------------- |
|
||||||
| `rustc-version` | Version as reported by `rustc --version` |
|
| `rustc-version` | Version as reported by `rustc --version` |
|
||||||
| `cargo-version` | Version as reported by `cargo --version` |
|
| `cargo-version` | Version as reported by `cargo --version` |
|
||||||
| `rustup-version` | Version as reported by `rustup --version` |
|
| `rustup-version` | Version as reported by `rustup --version` |
|
||||||
|
| `cachekey` | A short hash of the installed rustc version |
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,10 @@ inputs:
|
||||||
description: "Automatically configure Rust cache"
|
description: "Automatically configure Rust cache"
|
||||||
required: false
|
required: false
|
||||||
default: "true"
|
default: "true"
|
||||||
|
matcher:
|
||||||
|
description: "Enable the Rust problem matcher"
|
||||||
|
required: false
|
||||||
|
default: "true"
|
||||||
rustflags:
|
rustflags:
|
||||||
description: "set RUSTFLAGS environment variable, set to empty string to avoid overwriting build.rustflags"
|
description: "set RUSTFLAGS environment variable, set to empty string to avoid overwriting build.rustflags"
|
||||||
required: false
|
required: false
|
||||||
|
@ -95,6 +99,7 @@ runs:
|
||||||
env:
|
env:
|
||||||
NEW_RUSTFLAGS: ${{inputs.rustflags}}
|
NEW_RUSTFLAGS: ${{inputs.rustflags}}
|
||||||
- name: "Install Rust Problem Matcher"
|
- name: "Install Rust Problem Matcher"
|
||||||
|
if: inputs.matcher == 'true'
|
||||||
run: echo "::add-matcher::${{ github.action_path }}/rust.json"
|
run: echo "::add-matcher::${{ github.action_path }}/rust.json"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue