Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d0c0875e2 | ||
|
|
4f4ec21ba1 | ||
|
|
545126f0e8 | ||
|
|
0005e194cc | ||
|
|
17624185be | ||
|
|
bf055241d4 | ||
|
|
a9f3482630 | ||
|
|
04fba30579 | ||
|
|
bb3b327c51 | ||
|
|
60e141d668 | ||
|
|
08515e67e1 | ||
|
|
8509223bc7 | ||
|
|
ae82e15273 | ||
|
|
dd72791927 | ||
|
|
0de4817981 | ||
|
|
b651f721c4 | ||
|
|
d87815601a | ||
|
|
6bc12485dd | ||
|
|
fb9ac95d1a | ||
|
|
c312ae7971 | ||
|
|
15a0ef1a78 | ||
|
|
bb243c024a | ||
|
|
850281ad51 | ||
|
|
9a4355f8e1 | ||
|
|
52b5d16c14 |
33
README.md
33
README.md
@@ -1,19 +1,42 @@
|
|||||||
# GCC problem matcher
|
# GCC problem matcher (no longer maintained)
|
||||||
|
|
||||||
|
> **Warning**
|
||||||
|
> This repository is no longer maintained, the new upstream is: https://github.com/root-project/gcc-problem-matcher-improved
|
||||||
|
|
||||||
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Folemorud%2Fgcc-problem-matcher?ref=badge_shield)
|
||||||
|
|
||||||
Creates annotations for warnings and errors in gcc builds.
|
Creates annotations for warnings and errors in gcc builds.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Inputs
|
## 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.
|
**Optional** Directory the build is running in. Matched errors will not be able to point to the correct file or create warnings in the `Files changed` overview unless this is correct.
|
||||||
|
|
||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
Just add this line anywhere before running the build step.
|
Create annotations for builds done in the default directory. Add this anywhere before starting the build.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: olemorud/gcc-problem-matcher@v1.0
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
Create annotations for builds done in directory `/workspace/build/`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: olemorud/gcc-problem-matcher@master
|
- uses: olemorud/gcc-problem-matcher@master
|
||||||
with:
|
with:
|
||||||
root: /workspace/build
|
build-directory: /workspace/build/
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
...
|
||||||
```
|
```
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
name: GCC Problem Matcher
|
name: GCC Problem Matcher Improved (deprecated)
|
||||||
|
|
||||||
description: Get annotations for warnings and errors on builds using gcc
|
description: new upstream: https://github.com/root-project/gcc-problem-matcher-improved
|
||||||
|
|
||||||
author: Ole Morud
|
author: Ole Morud
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ branding:
|
|||||||
inputs:
|
inputs:
|
||||||
build-directory:
|
build-directory:
|
||||||
description: 'base directory for build, e.g. /workdir/build'
|
description: 'base directory for build, e.g. /workdir/build'
|
||||||
required: true
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node16'
|
||||||
|
|||||||
13
dist/gcc_matcher.jsontemplate
vendored
13
dist/gcc_matcher.jsontemplate
vendored
@@ -4,13 +4,12 @@
|
|||||||
"owner": "gcc-problem-matcher",
|
"owner": "gcc-problem-matcher",
|
||||||
"pattern": [
|
"pattern": [
|
||||||
{
|
{
|
||||||
"regexp": "^(${{ BASE }}\\/?)(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
"regexp": "^${{ BASE }}\\/?(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
||||||
"fromPath": 1,
|
"file": 1,
|
||||||
"file": 2,
|
"line": 2,
|
||||||
"line": 3,
|
"column": 3,
|
||||||
"column": 4,
|
"severity": 4,
|
||||||
"severity": 5,
|
"message": 5
|
||||||
"message": 6
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,13 +4,12 @@
|
|||||||
"owner": "gcc-problem-matcher",
|
"owner": "gcc-problem-matcher",
|
||||||
"pattern": [
|
"pattern": [
|
||||||
{
|
{
|
||||||
"regexp": "^(${{ BASE }}\\/?)(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
"regexp": "^${{ BASE }}\\/?(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
|
||||||
"fromPath": 1,
|
"file": 1,
|
||||||
"file": 2,
|
"line": 2,
|
||||||
"line": 3,
|
"column": 3,
|
||||||
"column": 4,
|
"severity": 4,
|
||||||
"severity": 5,
|
"message": 5
|
||||||
"message": 6
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user