]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[workflow] Use gcc problem matcher for Ubuntu action build (GH-18567)
authorAmmar Askar <ammar@ammaraskar.com>
Sat, 6 Jun 2020 11:21:46 +0000 (11:21 +0000)
committerGitHub <noreply@github.com>
Sat, 6 Jun 2020 11:21:46 +0000 (12:21 +0100)
.github/problem-matchers/gcc.json [new file with mode: 0644]
.github/workflows/build.yml

diff --git a/.github/problem-matchers/gcc.json b/.github/problem-matchers/gcc.json
new file mode 100644 (file)
index 0000000..bd5ab6c
--- /dev/null
@@ -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
index 6bb52cb6a5daa5ce36ea80b58bce57dd2dcf091f..5649a6670e75f5c77b9efc889589dcd495fbfc90 100644 (file)
@@ -87,6 +87,8 @@ jobs:
       OPENSSL_VER: 1.1.1f
     steps:
     - uses: actions/checkout@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'