[Python-checkins] [workflow] Use gcc problem matcher for Ubuntu action build (GH-18567)

Ammar Askar webhook-mailer at python.org
Sat Jun 6 07:21:59 EDT 2020


https://github.com/python/cpython/commit/5552850f8e6ad6bf610c2633c74ed42dacc81b46
commit: 5552850f8e6ad6bf610c2633c74ed42dacc81b46
branch: master
author: Ammar Askar <ammar at ammaraskar.com>
committer: GitHub <noreply at github.com>
date: 2020-06-06T12:21:46+01:00
summary:

[workflow] Use gcc problem matcher for Ubuntu action build (GH-18567)

files:
A .github/problem-matchers/gcc.json
M .github/workflows/build.yml

diff --git a/.github/problem-matchers/gcc.json b/.github/problem-matchers/gcc.json
new file mode 100644
index 0000000000000..bd5ab6c00a760
--- /dev/null
+++ b/.github/problem-matchers/gcc.json
@@ -0,0 +1,18 @@
+{
+    "__comment": "Taken from vscode-cpptools's Extension/package.json gcc rule",
+    "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
+                }
+            ]
+        }
+    ]
+}
\ No newline at end of file
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6bb52cb6a5daa..5649a6670e75f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -87,6 +87,8 @@ jobs:
       OPENSSL_VER: 1.1.1f
     steps:
     - uses: actions/checkout at v2
+    - name: Register gcc problem matcher
+      run: echo "::add-matcher::.github/problem-matchers/gcc.json"
     - name: Install Dependencies
       run: sudo ./.github/workflows/posix-deps-apt.sh
     - name: 'Restore OpenSSL build'



More information about the Python-checkins mailing list