From 51173b3da485cd71e24a9acbcbe2549aa16fa0b6 Mon Sep 17 00:00:00 2001 From: dcvz Date: Thu, 30 Nov 2023 11:42:45 +0100 Subject: [PATCH 1/2] 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 2/2] 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