Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ defaults:

jobs:

# TODO: use Debug build to speed it up?
build_qt:
strategy:
matrix:
Expand Down Expand Up @@ -52,27 +51,26 @@ jobs:
- name: Run CMake
run: |
rem TODO: enable rules?
rem specify Release build so matchcompiler is used
cmake -S . -B build -Werror=dev --warn-uninitialized -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!
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!

- name: Build GUI release
- name: Build GUI
run: |
cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel!
cmake --build build --config Debug --target cppcheck-gui || exit /b !errorlevel!

# TODO: can this be done in CMake?
- name: Deploy GUI
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!
windeployqt --no-translations build\bin\Debug || exit /b !errorlevel!
del build\bin\Debug\cppcheck-gui.pdb || exit /b !errorlevel!

# TODO: run GUI tests

- name: Run CMake install
run: |
rem TODO: this performs a Debug build
rem TODO: the Qt DLLS are not being installed (because of the missing windeployqt?)
cmake --build build --target install
rem TODO: the Qt DLLs are not being installed
cmake --build build --config Debug --target install
rem TODO: validate the installed files
rem TODO: the structure does not match an actual Windows installation

build_cmake_cxxstd:
strategy:
Expand Down
Loading