Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31f5585936 | ||
|
|
e413405c42 | ||
|
|
e758cb8cf0 | ||
|
|
8a8f3dcf06 | ||
|
|
8354b13365 | ||
|
|
70fa3137ae | ||
|
|
c041f1a38d | ||
|
|
90cf5ede8d | ||
|
|
8b67cd9fb3 | ||
|
|
5938cacd96 | ||
|
|
389f0126c9 | ||
|
|
bbe92b8e4f | ||
|
|
6d3cafd749 | ||
|
|
9a33ec6b8a | ||
|
|
47a6b397d9 |
35
README.md
35
README.md
@@ -1,42 +1,19 @@
|
|||||||
# GCC problem matcher (no longer maintained)
|
# GCC problem matcher
|
||||||
|
|
||||||
> **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
|
||||||
|
|
||||||
### build-directory
|
### root
|
||||||
|
|
||||||
**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.
|
**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
|
## Example usage
|
||||||
|
|
||||||
Create annotations for builds done in the default directory. Add this anywhere before starting the build.
|
Just add this line anywhere before running the build step.
|
||||||
|
|
||||||
```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:
|
||||||
build-directory: /workspace/build/
|
root: /workspace/build
|
||||||
|
```
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
...
|
|
||||||
```
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
name: GCC Problem Matcher Improved (deprecated)
|
name: GCC Problem Matcher
|
||||||
|
|
||||||
description: new upstream: https://github.com/root-project/gcc-problem-matcher-improved
|
description: Get annotations for warnings and errors on builds using gcc
|
||||||
|
|
||||||
author: Ole Morud
|
author: Ole Morud
|
||||||
|
|
||||||
@@ -11,8 +11,8 @@ 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: false
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node16'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
13
dist/gcc_matcher.jsontemplate
vendored
13
dist/gcc_matcher.jsontemplate
vendored
@@ -4,12 +4,13 @@
|
|||||||
"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+(.*)$",
|
||||||
"file": 1,
|
"fromPath": 1,
|
||||||
"line": 2,
|
"file": 2,
|
||||||
"column": 3,
|
"line": 3,
|
||||||
"severity": 4,
|
"column": 4,
|
||||||
"message": 5
|
"severity": 5,
|
||||||
|
"message": 6
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,12 +4,13 @@
|
|||||||
"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+(.*)$",
|
||||||
"file": 1,
|
"fromPath": 1,
|
||||||
"line": 2,
|
"file": 2,
|
||||||
"column": 3,
|
"line": 3,
|
||||||
"severity": 4,
|
"column": 4,
|
||||||
"message": 5
|
"severity": 5,
|
||||||
|
"message": 6
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user