Skip to content

Commit 6a75610

Browse files
authored
CI: capture gcc warnings/errors (#444)
1 parent 4781ef1 commit 6a75610

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/gcc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "gcc",
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+
}

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
- uses: actions/checkout@v2
1111

1212
- name: Build tests
13-
run: docker buildx build . --target test -t spectrum:tests
13+
run: |
14+
echo "::add-matcher::.github/gcc.json"
15+
docker buildx build . --target test -t spectrum:tests
1416
- name: Run tests
1517
run: docker run -tt spectrum:tests
1618
linux-clang:

0 commit comments

Comments
 (0)