Skip to content

Commit

Permalink
Merge pull request #2935 from nicolossus/compiler_problem_matcher
Browse files Browse the repository at this point in the history
Add GCC compiler problem matcher to CI
  • Loading branch information
gtrensch authored Mar 22, 2024
2 parents a08a8b8 + 297735d commit d8bd868
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/nestbuildmatrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,20 @@ jobs:
-Dwith-libneurosim=${{ contains(matrix.use, 'libneurosim') && '$HOME/.cache/libneurosim.install' || 'OFF' }} \
..
- name: "Add GCC problem matcher"
run: |
echo "::add-matcher::gcc_problem_matcher.json"
- name: "Build NEST"
run: |
cd "$NEST_VPATH"
env
make VERBOSE=1
- name: "Remove GCC problem matcher"
run: |
echo "::remove-matcher owner=gcc-problem-matcher::"
- name: "Install NEST"
run: |
cd "$NEST_VPATH"
Expand Down Expand Up @@ -800,12 +808,20 @@ jobs:
-Dwith-libneurosim=${{ contains(matrix.use, 'libneurosim') && '$HOME/.cache/libneurosim.install' || 'OFF' }} \
..
- name: "Add GCC problem matcher"
run: |
echo "::add-matcher::gcc_problem_matcher.json"
- name: "Build NEST"
run: |
cd "$NEST_VPATH"
env
make VERBOSE=1
- name: "Remove GCC problem matcher"
run: |
echo "::remove-matcher owner=gcc-problem-matcher::"
- name: "Install NEST"
run: |
cd "$NEST_VPATH"
Expand Down
17 changes: 17 additions & 0 deletions gcc_problem_matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "gcc-problem-matcher",
"pattern": [
{
"regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
}
]
}

0 comments on commit d8bd868

Please sign in to comment.