Files
reactos/.github/workflows/problem-matcher.json
Mikhail Tyukin 1182a5644e [GITHUB] Add problem matcher to enable annotations (#9472)
Enable the GitHub Actions annotation feature for GCC, Clang and MSVC.
This allows you to spot build failures very easily. Use sed to change
relative file paths to absolute ones, making CI recognize it properly.

Currently only linker errors and C/C++ compiler errors are annotated.
2026-09-01 14:22:52 +03:00

70 lines
2.0 KiB
JSON

{
"problemMatcher": [
{
"owner": "gcc",
"severity": "error",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+):\\s+(fatal error|error|warning|note):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
},
{
"owner": "msvc",
"pattern": [
{
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"code": 5,
"message": 6
}
]
},
{
"owner": "clang",
"pattern": [
{
"regexp": "^(.*?)\\((\\d+),(\\d+)\\):\\s+(warning|error|note):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
},
{
"owner": "msvc-linker",
"pattern": [
{
"regexp": "^(.*?)\\s*:\\s*(fatal error|error|warning)\\s+([A-Z0-9]+)\\s*:\\s*(.*)$",
"file": 1,
"severity": 2,
"code": 3,
"message": 4
}
]
},
{
"owner": "gcc-linker",
"severity": "error",
"pattern": [
{
"regexp": "^(.*?(?:ld|collect2)(?:\\.exe)?):\\s*(?:(warning|error|fatal error):?\\s+)?(.*)$",
"file": 1,
"severity": 2,
"message": 3
}
]
}
]
}