Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb3b327c51 | ||
|
|
60e141d668 | ||
|
|
08515e67e1 | ||
|
|
8509223bc7 | ||
|
|
ae82e15273 | ||
|
|
dd72791927 | ||
|
|
0de4817981 | ||
|
|
b651f721c4 | ||
|
|
d87815601a | ||
|
|
6bc12485dd | ||
|
|
fb9ac95d1a | ||
|
|
c312ae7971 | ||
|
|
15a0ef1a78 | ||
|
|
bb243c024a | ||
|
|
850281ad51 | ||
|
|
9a4355f8e1 | ||
|
|
52b5d16c14 |
14
README.md
14
README.md
@@ -4,16 +4,22 @@ Creates annotations for warnings and errors in gcc builds.
|
||||
|
||||
## Inputs
|
||||
|
||||
### root
|
||||
### build-directory
|
||||
|
||||
**Optional** Base directory for build. For builds done in a subdirectory, this should match that directory, otherwise the pattern match will not be able to point to the correct file.
|
||||
|
||||
## Example usage
|
||||
|
||||
Just add this line anywhere before running the build step.
|
||||
Create annotations for builds done in the root directory
|
||||
|
||||
```yaml
|
||||
- uses: olemorud/gcc-problem-matcher@v1.0
|
||||
```
|
||||
|
||||
Create annotations for builds done in directory `/workspace/build/`
|
||||
|
||||
```yaml
|
||||
- uses: olemorud/gcc-problem-matcher@master
|
||||
with:
|
||||
root: /workspace/build
|
||||
```
|
||||
build-directory: /workspace/build/
|
||||
```
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: GCC Problem Matcher
|
||||
name: GCC Problem Matcher Improved
|
||||
|
||||
description: Get annotations for warnings and errors on builds using gcc
|
||||
|
||||
@@ -11,8 +11,8 @@ branding:
|
||||
inputs:
|
||||
build-directory:
|
||||
description: 'base directory for build, e.g. /workdir/build'
|
||||
required: true
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: 'node16'
|
||||
main: 'dist/index.js'
|
||||
main: 'dist/index.js'
|
||||
|
||||
13
dist/gcc_matcher.jsontemplate
vendored
13
dist/gcc_matcher.jsontemplate
vendored
@@ -4,13 +4,12 @@
|
||||
"owner": "gcc-problem-matcher",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(${{ BASE }}\\/?)(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
||||
"fromPath": 1,
|
||||
"file": 2,
|
||||
"line": 3,
|
||||
"column": 4,
|
||||
"severity": 5,
|
||||
"message": 6
|
||||
"regexp": "^${{ BASE }}\\/?(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"column": 3,
|
||||
"severity": 4,
|
||||
"message": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -4,13 +4,12 @@
|
||||
"owner": "gcc-problem-matcher",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(${{ BASE }}\\/?)(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
||||
"fromPath": 1,
|
||||
"file": 2,
|
||||
"line": 3,
|
||||
"column": 4,
|
||||
"severity": 5,
|
||||
"message": 6
|
||||
"regexp": "^${{ BASE }}\\/?(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"column": 3,
|
||||
"severity": 4,
|
||||
"message": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user