Enable problem-matchers in CI (#3480)

This commit is contained in:
Björn Quentin 2025-05-08 15:07:51 +02:00 committed by GitHub
parent 8271760498
commit 29060aee6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

44
.github/rust-matchers.json vendored Normal file
View File

@ -0,0 +1,44 @@
{
"problemMatcher": [
{
"owner": "rust-compiler",
"pattern": [
{
"regexp": "^(?:\\x1B\\[[0-9;]*[a-zA-Z])*(warning|warn|error)(\\[(\\S*)\\])?(?:\\x1B\\[[0-9;]*[a-zA-Z])*: (.*?)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"severity": 1,
"message": 4,
"code": 3
},
{
"regexp": "^(?:\\x1B\\[[0-9;]*[a-zA-Z])*\\s+(?:\\x1B\\[[0-9;]*[a-zA-Z])*-->\\s(?:\\x1B\\[[0-9;]*[a-zA-Z])*(\\S+):(\\d+):(\\d+)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"file": 1,
"line": 2,
"column": 3
}
]
},
{
"owner": "rust-formatter",
"pattern": [
{
"regexp": "^(Diff in (\\S+)) at line (\\d+):",
"message": 1,
"file": 2,
"line": 3
}
]
},
{
"owner": "rust-panic",
"pattern": [
{
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+):(\\d+)$",
"message": 1,
"file": 2,
"line": 3,
"column": 4
}
]
}
]
}

View File

@ -344,6 +344,8 @@ fn publish(workspace: &Path, args: PublishArgs) -> Result<()> {
}
fn run_ci_checks(workspace: &Path, args: CiArgs) -> Result<()> {
println!("::add-matcher::.github/rust-matchers.json");
let mut failure = false;
let started_at = Instant::now();