feature(matcher): allow disabling problem matcher

This commit is contained in:
dcvz 2023-11-30 11:42:45 +01:00
parent 317ed62323
commit 51173b3da4

View file

@ -26,6 +26,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
@ -96,6 +100,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