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:
8
.github/workflows/windows.yml
vendored
8
.github/workflows/windows.yml
vendored
@ -120,11 +120,13 @@ jobs:
|
|||||||
cmake --build build_dependencies/kimageformats --config Release --target=install || goto :error
|
cmake --build build_dependencies/kimageformats --config Release --target=install || goto :error
|
||||||
echo ::endgroup::
|
echo ::endgroup::
|
||||||
:: ------ app ------
|
:: ------ 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
|
||||||
cmake --build build --config Release --target=install
|
cmake --install build --config Release --prefix "%PWD%\build"
|
||||||
|
echo ::endgroup::
|
||||||
:: ------ pkg ------
|
:: ------ 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
|
robocopy ./dependencies_bin/bin build/bin *.dll
|
||||||
if ErrorLevel 8 (exit /B 1)
|
if ErrorLevel 8 (exit /B 1)
|
||||||
copy LICENSE build\bin
|
copy LICENSE build\bin
|
||||||
|
|||||||
4
.gitignore
vendored
4
.gitignore
vendored
@ -16,3 +16,7 @@ cmake-build-*/
|
|||||||
# IDE/Editor config folders
|
# IDE/Editor config folders
|
||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
|
.qtcreator/
|
||||||
|
|
||||||
|
# Clangd cache
|
||||||
|
.cache/
|
||||||
|
|||||||
Reference in New Issue
Block a user