From 6d518bfaffc764e822f5534d89454df4880c9b26 Mon Sep 17 00:00:00 2001 From: Jan Laupetin Date: Mon, 23 Nov 2026 20:00:35 +0100 Subject: [PATCH] chore(ci): report on problems from msvc in ci (#1103) * ci: report on problems from msvc in ci * chore: ignore warnings in eigen header --- .github/problem-matcher/clang.json | 18 ++++++++++++++++++ .github/problem-matcher/gcc.json | 18 ++++++++++++++++++ .github/problem-matcher/msvc.json | 19 +++++++++++++++++++ .github/workflows/ci.yaml | 12 +++++++++--- .github/workflows/release.yaml | 6 ++++++ src/ObjLoading/XModel/CollisionTreeCreator.h | 3 +++ 6 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 .github/problem-matcher/clang.json create mode 100644 .github/problem-matcher/gcc.json create mode 100644 .github/problem-matcher/msvc.json diff --git a/.github/problem-matcher/clang.json b/.github/problem-matcher/clang.json new file mode 100644 index 000000000..0960cace3 --- /dev/null +++ b/.github/problem-matcher/clang.json @@ -0,0 +1,18 @@ +{ + "__comment": "Taken from https://gitlab.com/freecad/FreeCAD", + "problemMatcher": [ + { + "owner": "clang", + "pattern": [ + { + "regexp": "^(.+):([0-9]+):([0-9]+): (error|warning|note): (.+)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + ] + } + ] +} diff --git a/.github/problem-matcher/gcc.json b/.github/problem-matcher/gcc.json new file mode 100644 index 000000000..dab70752b --- /dev/null +++ b/.github/problem-matcher/gcc.json @@ -0,0 +1,18 @@ +{ + "__comment": "Taken from https://gitlab.com/freecad/FreeCAD", + "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 + } + ] + } + ] +} diff --git a/.github/problem-matcher/msvc.json b/.github/problem-matcher/msvc.json new file mode 100644 index 000000000..d936631c0 --- /dev/null +++ b/.github/problem-matcher/msvc.json @@ -0,0 +1,19 @@ +{ + "__comment": "Taken from https://gitlab.com/freecad/FreeCAD", + "problemMatcher": [ + { + "owner": "msvc-problem-matcher", + "pattern": [ + { + "regexp": "/^\\s*(?:\\s*\\d+>)?(\\S.*?)(?:\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\))?\\s*:\\s+(?:(\\S+)\\s+)?((?:fatal +)?error|warning|info)\\s+(\\w+\\d+)?\\s*:\\s*(.*)$/", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "code": 5, + "message": 6 + } + ] + } + ] +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a7cfa5f0e..3b76df9d8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,8 +17,8 @@ jobs: build-test-linux: strategy: matrix: - build_arch: [ x86, x64 ] - toolset: [ gcc, clang ] + build_arch: [x86, x64] + toolset: [gcc, clang] include: - build_arch: x86 gtk_packages: libgtk-4-dev:i386 libwebkitgtk-6.0-dev:i386 @@ -80,6 +80,9 @@ jobs: npm install npm run build + - name: Set up problem matching + run: echo "::add-matcher::${{ github.workspace }}/.github/problem-matcher/${{ matrix.toolset }}.json" + - name: Build working-directory: ${{ github.workspace }} run: | @@ -112,7 +115,7 @@ jobs: build-test-windows: strategy: matrix: - build_arch: [ x86, x64 ] + build_arch: [x86, x64] include: - build_arch: x86 msbuild_config: Win32 @@ -178,6 +181,9 @@ jobs: npm install npm run build + - name: Set up problem matching + run: echo "::add-matcher::${{ github.workspace }}/.github/problem-matcher/msvc.json" + - name: Build working-directory: ${{ github.workspace }} run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 11f483388..1e3e11cff 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,6 +38,9 @@ jobs: PREMAKE_NO_PROMPT: 1 run: ./generate.sh --cc=gcc --oat-version=${{ github.ref_name }} + - name: Set up problem matching + run: echo "::add-matcher::${{ github.workspace }}/.github/problem-matcher/gcc.json" + - name: Build working-directory: ${{ github.workspace }} run: | @@ -70,6 +73,9 @@ jobs: PREMAKE_NO_PROMPT: 1 run: ./generate.bat --oat-version=${{ github.ref_name }} + - name: Set up problem matching + run: echo "::add-matcher::${{ github.workspace }}/.github/problem-matcher/msvc.json" + - name: Build working-directory: ${{ github.workspace }} run: msbuild /m /p:Configuration=Release /p:Platform=Win32 build diff --git a/src/ObjLoading/XModel/CollisionTreeCreator.h b/src/ObjLoading/XModel/CollisionTreeCreator.h index 169a7cafc..4cca8550a 100644 --- a/src/ObjLoading/XModel/CollisionTreeCreator.h +++ b/src/ObjLoading/XModel/CollisionTreeCreator.h @@ -1,6 +1,9 @@ #pragma once +#pragma warning(push, 0) #include +#pragma warning(pop) + #include #include #include