Skip to content

Commit

Permalink
release-windows.yml: build with CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Sep 23, 2024
1 parent 103b296 commit 1b72d61
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,16 @@ jobs:

- 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 || 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!
# TODO: build with boost enabled
- name: Build CLI x64 release configuration using MSBuild
Expand All @@ -99,7 +98,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!
Expand Down

0 comments on commit 1b72d61

Please sign in to comment.