3131 runs-on : ${{ matrix.os }}
3232
3333 steps :
34- - uses : actions/checkout@v4
34+ - uses : actions/checkout@v6
3535 with :
3636 persist-credentials : false
3737
@@ -47,29 +47,30 @@ jobs:
4747 modules : ' qtcharts'
4848 setup-python : ' false'
4949 cache : true
50- aqtversion : ' ==3.1.*' # TODO: remove when aqtinstall 3.2.2 is available
5150
5251 - name : Run CMake
5352 run : |
5453 rem TODO: enable rules?
55- rem specify Release build so matchcompiler is used
56- cmake -S . -B build -Werror=dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_TESTING=Off -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!
54+ cmake -S . -B build -Werror=dev --warn-uninitialized -DCMAKE_BUILD_TYPE=Debug -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_TESTING=Off -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DISABLE_DMAKE=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
5755
58- - name : Build GUI release
56+ - name : Build GUI
5957 run : |
60- cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel!
58+ cmake --build build --config Debug --target cppcheck-gui || exit /b !errorlevel!
6159
60+ # TODO: can this be done in CMake?
6261 - name : Deploy GUI
6362 run : |
64- windeployqt build\bin\Release || exit /b !errorlevel!
65- del build\bin\Release\cppcheck-gui.ilk || exit /b !errorlevel!
66- del build\bin\Release\cppcheck-gui.pdb || exit /b !errorlevel!
63+ windeployqt --no-translations build\bin\Debug || exit /b !errorlevel!
64+ del build\bin\Debug\cppcheck-gui.pdb || exit /b !errorlevel!
6765
6866 # TODO: run GUI tests
6967
7068 - name : Run CMake install
7169 run : |
72- cmake --build build --target install
70+ rem TODO: the Qt DLLs are not being installed
71+ cmake --build build --config Debug --target install
72+ rem TODO: validate the installed files
73+ rem TODO: the structure does not match an actual Windows installation
7374
7475 build_cmake_cxxstd :
7576 strategy :
8182 runs-on : ${{ matrix.os }}
8283
8384 steps :
84- - uses : actions/checkout@v4
85+ - uses : actions/checkout@v6
8586 with :
8687 persist-credentials : false
8788
9293
9394 - name : Run CMake
9495 run : |
95- cmake -S . -B build.cxxstd -Werror=dev -G "Visual Studio 17 2022" -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxxstd }} -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
96+ cmake -S . -B build.cxxstd -Werror=dev --warn-uninitialized -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxxstd }} -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
9697
9798 - name : Build
9899 run : |
@@ -107,7 +108,7 @@ jobs:
107108 CMAKE_VERSION_FULL : 3.22.6
108109
109110 steps :
110- - uses : actions/checkout@v4
111+ - uses : actions/checkout@v6
111112 with :
112113 persist-credentials : false
113114
@@ -128,17 +129,16 @@ jobs:
128129 modules : ' qtcharts'
129130 setup-python : ' false'
130131 cache : true
131- aqtversion : ' ==3.1.*' # TODO: remove when aqtinstall 3.2.2 is available
132132
133133 - name : Run CMake (without GUI)
134134 run : |
135135 :: TODO: enable DHAVE_RULES?
136- cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output -G "Visual Studio 17 2022" - A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On
136+ cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On
137137
138138 - name : Run CMake (with GUI)
139139 run : |
140140 :: TODO: enable DHAVE_RULES?
141- cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output.gui -G "Visual Studio 17 2022" - A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On
141+ cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output.gui -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On
142142
143143 build :
144144 strategy :
@@ -154,13 +154,13 @@ jobs:
154154 PCRE_VERSION : 8.45
155155
156156 steps :
157- - uses : actions/checkout@v4
157+ - uses : actions/checkout@v6
158158 with :
159159 persist-credentials : false
160160
161161 - name : Set up Python
162162 if : matrix.config == 'release'
163- uses : actions/setup-python@v5
163+ uses : actions/setup-python@v6
164164 with :
165165 python-version : ' 3.14'
166166 check-latest : true
@@ -172,7 +172,7 @@ jobs:
172172
173173 - name : Cache PCRE
174174 id : cache-pcre
175- uses : actions/cache@v4
175+ uses : actions/cache@v5
176176 with :
177177 path : |
178178 externals\pcre.h
@@ -219,7 +219,7 @@ jobs:
219219
220220 - name : Run Debug test
221221 if : matrix.config == 'debug'
222- run : .\bin\debug\testrunner.exe || exit /b !errorlevel!
222+ run : .\bin\debug\testrunner.exe -t || exit /b !errorlevel!
223223
224224 - name : Build CLI release configuration using MSBuild
225225 if : matrix.config == 'release'
@@ -272,7 +272,7 @@ jobs:
272272 - name : Test SEH wrapper
273273 if : matrix.config == 'release'
274274 run : |
275- cmake -S . -B build.cmake.seh -Werror=dev -DBUILD_TESTING=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
275+ cmake -S . -B build.cmake.seh -Werror=dev --warn-uninitialized - DBUILD_TESTING=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
276276 cmake --build build.cmake.seh --target test-sehwrapper || exit /b !errorlevel!
277277 :: TODO: how to run this without copying the file?
278278 copy build.cmake.seh\bin\Debug\test-sehwrapper.exe . || exit /b !errorlevel!
0 commit comments