15 Commits
v1.0 ... v0.1.1

Author SHA1 Message Date
olemorud
31f5585936 test 2023-03-15 14:06:00 +01:00
olemorud
e413405c42 npm run build 2023-03-15 10:50:41 +01:00
olemorud
e758cb8cf0 Add fromPath to matcher template 2023-03-15 10:49:48 +01:00
olemorud
8a8f3dcf06 update generate_warnings.c 2023-03-14 17:24:04 +01:00
olemorud
8354b13365 test 2023-03-14 17:21:50 +01:00
olemorud
70fa3137ae skip broken test 2023-03-14 17:21:50 +01:00
olemorud
c041f1a38d add CI 2023-03-14 17:21:50 +01:00
olemorud
90cf5ede8d .gitignore: add .vscode 2023-03-14 15:58:42 +01:00
olemorud
8b67cd9fb3 Update action.yml to use dist/ 2023-03-14 15:21:46 +01:00
olemorud
5938cacd96 Add npm build command 2023-03-14 15:21:03 +01:00
olemorud
389f0126c9 update index.js 2023-03-14 15:20:54 +01:00
olemorud
bbe92b8e4f ncc build 2023-03-14 15:00:33 +01:00
olemorud
6d3cafd749 .gitignore: add */gcc_matcher.json 2023-03-14 15:00:33 +01:00
olemorud
9a33ec6b8a Update README 2023-03-14 14:54:46 +01:00
olemorud
47a6b397d9 npm init 2023-03-14 14:54:46 +01:00
4 changed files with 21 additions and 25 deletions

View File

@@ -4,22 +4,16 @@ Creates annotations for warnings and errors in gcc builds.
## Inputs ## Inputs
### build-directory ### root
**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
Create annotations for builds done in the root directory Just add this line anywhere before running the build step.
```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:
build-directory: /workspace/build/ root: /workspace/build
``` ```

View File

@@ -1,4 +1,4 @@
name: GCC Problem Matcher Improved name: GCC Problem Matcher
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: false required: true
runs: runs:
using: 'node16' using: 'node16'

View File

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

View File

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