diff --git a/.github/workflows/CI-windows.yml b/.github/workflows/CI-windows.yml index 420c470fa5a..aa50c4f79c9 100644 --- a/.github/workflows/CI-windows.yml +++ b/.github/workflows/CI-windows.yml @@ -66,10 +66,19 @@ jobs: - name: Build GUI release (CMake) if: startsWith(matrix.qt_ver, '6') run: | - cmake -S . -B build -DBUILD_GUI=On -DUSE_QT6=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On || exit /b !errorlevel! - cmake --build build --target cppcheck-gui || exit /b !errorlevel! + ; TODO: enable rules? + ; specify Release build so matchcompiler is used + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=On -DUSE_QT6=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On || exit /b !errorlevel! + cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel! - # TODO: deploy with CMake/Qt6 + - name: Deploy GUI + if: startsWith(matrix.qt_ver, '6') + run: | + windeployqt build\bin\Release || exit /b !errorlevel! + del build\bin\Release\cppcheck-gui.ilk || exit /b !errorlevel! + del build\bin\Release\cppcheck-gui.pdb || exit /b !errorlevel! + + # TODO: run GUI tests build: strategy: diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml index ced557ae694..ec732c06bcc 100644 --- a/.github/workflows/release-windows.yml +++ b/.github/workflows/release-windows.yml @@ -75,22 +75,21 @@ jobs: lupdate gui.pro -no-obsolete || exit /b !errorlevel! lrelease gui.pro -removeidentical || exit /b !errorlevel! - - name: Matchcompiler - run: python tools\matchcompiler.py --write-dir lib || exit /b !errorlevel! - - name: Build x64 release GUI run: | - cd gui || exit /b !errorlevel! - qmake HAVE_QCHART=yes || exit /b !errorlevel! - nmake release || exit /b !errorlevel! - env: - CL: /MP + ; TODO: enable rules? + ; specify Release build so matchcompiler is used + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On || exit /b !errorlevel! + cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel! - name: Deploy app run: | - windeployqt Build\gui || exit /b !errorlevel! - del Build\gui\cppcheck-gui.ilk || exit /b !errorlevel! - del Build\gui\cppcheck-gui.pdb || exit /b !errorlevel! + windeployqt build\bin\Release || exit /b !errorlevel! + del build\bin\Release\cppcheck-gui.ilk || exit /b !errorlevel! + del build\bin\Release\cppcheck-gui.pdb || exit /b !errorlevel! + + - name: Matchcompiler + run: python tools\matchcompiler.py --write-dir lib || exit /b !errorlevel! # TODO: build with boost enabled - name: Build CLI x64 release configuration using MSBuild @@ -105,7 +104,7 @@ jobs: - name: Collect files run: | - move Build\gui win_installer\files || exit /b !errorlevel! + move build\bin\Release win_installer\files || exit /b !errorlevel! mkdir win_installer\files\addons || exit /b !errorlevel! copy addons\*.* win_installer\files\addons || exit /b !errorlevel! copy addons\dist\misra\*.* win_installer\files\addons || exit /b !errorlevel!