Skip to content

Commit

Permalink
Merge pull request #27 from oxideai/feature/config-matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb committed Dec 3, 2023
2 parents 317ed62 + 84ba0c9 commit 74a4154
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 74a4154

Please sign in to comment.