File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 run : |
5656 rem TODO: enable rules?
5757 rem specify Release build so matchcompiler is used
58- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
58+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install || exit /b !errorlevel!
5959
6060 - name : Build GUI release
6161 run : |
7373 run : |
7474 cmake --build build --target install
7575
76+ build_cmake :
77+ strategy :
78+ matrix :
79+ os : [windows-2022, windows-2025]
80+ cxxstd : [14, 17]
81+ fail-fast : false
82+
83+ runs-on : ${{ matrix.os }}
84+
85+ env :
86+ # see https://www.pcre.org/original/changelog.txt
87+ PCRE_VERSION : 8.45
88+
89+ steps :
90+ - uses : actions/checkout@v4
91+ with :
92+ persist-credentials : false
93+
94+ - name : Set up Visual Studio environment
95+ uses : ilammy/msvc-dev-cmd@v1
96+ with :
97+ arch : x64
98+
99+ - name : Run CMake
100+ run : |
101+ cmake -S . -B build.cxx17 -G "Visual Studio 17 2022" -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxxstd }} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
102+
103+ - name : Build
104+ run : |
105+ msbuild -m build.cxx17\cppcheck.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel!
106+
76107 build :
77108 strategy :
78109 matrix :
@@ -142,8 +173,6 @@ jobs:
142173 python -m pip install pytest-xdist || exit /b !errorlevel!
143174 python -m pip install psutil || exit /b !errorlevel!
144175
145- # TODO: build with CMake
146-
147176 - name : Build CLI debug configuration using MSBuild
148177 if : matrix.config == 'debug'
149178 run : |
You can’t perform that action at this time.
0 commit comments