8000 [workflow] Use gcc problem matcher for Ubuntu action build (GH-18567) · python/cpython@5552850 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5552850

Browse files
authored
[workflow] Use gcc problem matcher for Ubuntu action build (GH-18567)
1 parent ba6fd87 commit 5552850

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/problem-matchers/gcc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"__comment": "Taken from vscode-cpptools's Extension/package.json gcc rule",
3+
"problemMatcher": [
4+
{
5+
"owner": "gcc-problem-matcher",
6+
"pattern": [
7+
{
8+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
9+
"file": 1,
10+
"line": 2,
11+
"column": 3,
12+
"severity": 4,
13+
"message": 5
14+
}
15+
]
16+
}
17+
]
18+
}

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
OPENSSL_VER: 1.1.1f
8888
steps:
8989
- uses: actions/checkout@v2
90+
- name: Register gcc problem matcher
91+
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
9092
- name: Install Dependencies
9193
run: sudo ./.github/workflows/posix-deps-apt.sh
9294
- name: 'Restore OpenSSL build'

0 commit comments

Comments
 (0)
0