Skip to content

Commit 8c102f6

Browse files
committed
Add GCC problem matcher
1 parent 445db5a commit 8c102f6

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/nestbuildmatrix.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,19 @@ jobs:
570570
-Dwith-libneurosim=${{ contains(matrix.use, 'libneurosim') && '$HOME/.cache/libneurosim.install' || 'OFF' }} \
571571
..
572572
573+
- name: "Add GCC problem matcher"
574+
run: |
575+
echo "::add-matcher::gcc_problem_matcher.json"
576+
573577
- name: "Build NEST"
574578
run: |
575579
cd "$NEST_VPATH"
576580
env
577-
make VERBOSE=1
581+
gcc-problem-matcher make VERBOSE=1
582+
583+
- name: "Remove GCC problem matcher"
584+
run: |
585+
echo "::remove-matcher owner=gcc-problem-matcher::"
578586
579587
- name: "Install NEST"
580588
run: |

gcc_problem_matcher.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "gcc-problem-matcher",
5+
"pattern": [
6+
{
7+
"regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"message": 5
13+
}
14+
]
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)