chore(CI): tweak msvc CI and make use of cmake install command

We also no longer include msvcrt in msvc cmake CI build
This commit is contained in:
2025-11-22 16:30:01 +08:00
parent 9dd34b3fce
commit d74db66ab5
2 changed files with 9 additions and 3 deletions

View File

@ -120,11 +120,13 @@ jobs:
cmake --build build_dependencies/kimageformats --config Release --target=install || goto :error
echo ::endgroup::
:: ------ app ------
cmake -Bbuild . -DCMAKE_INSTALL_PREFIX="%PWD%\build\"
echo ::group::===== App (Build'n'Install) =====
cmake -Bbuild .
cmake --build build --config Release
cmake --build build --config Release --target=install
cmake --install build --config Release --prefix "%PWD%\build"
echo ::endgroup::
:: ------ pkg ------
windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\ppic.exe
windeployqt --verbose=2 --no-compiler-runtime --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\ppic.exe
robocopy ./dependencies_bin/bin build/bin *.dll
if ErrorLevel 8 (exit /B 1)
copy LICENSE build\bin

4
.gitignore vendored
View File

@ -16,3 +16,7 @@ cmake-build-*/
# IDE/Editor config folders
.vscode/
.idea/
.qtcreator/
# Clangd cache
.cache/