17 Commits
v0.1.1 ... v1.0

Author SHA1 Message Date
olemorud
bb3b327c51 [docs] Update README 2023-03-16 11:20:50 +01:00
olemorud
60e141d668 [feat] Remove fromPath in matcher template 2023-03-16 11:15:15 +01:00
Ole Morud
08515e67e1 [docs] Update README.md 2023-03-16 11:15:15 +01:00
Ole Morud
8509223bc7 [feat] Change action name, update options 2023-03-16 11:15:15 +01:00
olemorud
ae82e15273 [feat] Make regex eat trailing '/' in group 1 2023-03-16 11:15:15 +01:00
olemorud
dd72791927 [feat] Add more bad code to generate_warnings.c 2023-03-16 11:15:15 +01:00
olemorud
0de4817981 [feat] Add fromPath to matcher template 2023-03-16 11:15:15 +01:00
olemorud
b651f721c4 [feat] Remove artifacts used for testing action 2023-03-16 11:14:29 +01:00
olemorud
d87815601a [test] skip broken test 2023-03-16 11:14:29 +01:00
olemorud
6bc12485dd [ci] add CI 2023-03-16 11:14:25 +01:00
olemorud
fb9ac95d1a [chore] .gitignore: add .vscode 2023-03-16 11:14:25 +01:00
olemorud
c312ae7971 [feat] Update action.yml to use dist/ 2023-03-16 11:14:20 +01:00
olemorud
15a0ef1a78 [build] package.json: Add npm build command 2023-03-16 11:09:29 +01:00
olemorud
bb243c024a [feat] index.js: use async read/write 2023-03-16 11:08:12 +01:00
olemorud
850281ad51 [chore] .gitignore: add */gcc_matcher.json 2023-03-16 11:06:23 +01:00
olemorud
9a4355f8e1 [docs] Update README 2023-03-16 11:06:15 +01:00
olemorud
52b5d16c14 [build] npm init 2023-03-16 11:05:29 +01:00
4 changed files with 25 additions and 21 deletions

View File

@@ -4,16 +4,22 @@ 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** 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
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 ```yaml
- uses: olemorud/gcc-problem-matcher@master - uses: olemorud/gcc-problem-matcher@master
with: with:
root: /workspace/build build-directory: /workspace/build/
``` ```

View File

@@ -1,4 +1,4 @@
name: GCC Problem Matcher name: GCC Problem Matcher Improved
description: Get annotations for warnings and errors on builds using gcc description: Get annotations for warnings and errors on builds using gcc
@@ -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'

View File

@@ -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
} }
] ]
} }

View File

@@ -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
} }
] ]
} }