From 33678a48c023ee5045cc1fc63ed0b9552de0c8f8 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:01:06 -0400 Subject: [PATCH 1/4] Add docs for the `cachekey` output to the README It seems like it's being output, just wasn't documented: https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/action.yml#L144 --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0f0b076..e9f8ae3 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,12 @@ You can read more rustflags, and their load order, in the [Cargo reference]. ## Outputs -| Name | Description | -| ---------------- | ----------------------------------------- | -| `rustc-version` | Version as reported by `rustc --version` | -| `cargo-version` | Version as reported by `cargo --version` | -| `rustup-version` | Version as reported by `rustup --version` | +| Name | Description | +| ---------------- | ------------------------------------------- | +| `rustc-version` | Version as reported by `rustc --version` | +| `cargo-version` | Version as reported by `cargo --version` | +| `rustup-version` | Version as reported by `rustup --version` | +| `cachekey` | A short hash of the installed rustc version | ## License From 51173b3da485cd71e24a9acbcbe2549aa16fa0b6 Mon Sep 17 00:00:00 2001 From: dcvz Date: Thu, 30 Nov 2023 11:42:45 +0100 Subject: [PATCH 2/4] feature(matcher): allow disabling problem matcher --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 5f0639e..500341b 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,10 @@ inputs: description: "Automatically configure Rust cache" required: false default: "true" + matcher: + description: "Enable the Rust problem matcher" + required: false + default: "true" rustflags: description: "set RUSTFLAGS environment variable, set to empty string to avoid overwriting build.rustflags" required: false @@ -96,6 +100,7 @@ runs: env: NEW_RUSTFLAGS: ${{inputs.rustflags}} - name: "Install Rust Problem Matcher" + if: inputs.matcher == 'true' run: echo "::add-matcher::${{ github.action_path }}/rust.json" shell: bash From 84ba0c9d1bc8c24a783b6fd3fd94b68b3d3e9909 Mon Sep 17 00:00:00 2001 From: dcvz Date: Thu, 30 Nov 2023 11:45:35 +0100 Subject: [PATCH 3/4] Update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0f0b076..3254707 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a | `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | | | `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | | | `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 From c7e1de28469b16b21a170a200a7a9e810bb5cdff Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Mon, 4 Dec 2023 00:16:34 +0100 Subject: [PATCH 4/4] Update CHANGELOG.md --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0375f7e..5e580c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [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 ### Added