From d74db66ab54264936d56c89a6b94fe1294b18b3c Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sat, 22 Nov 2025 16:30:01 +0800 Subject: [PATCH] chore(CI): tweak msvc CI and make use of cmake install command We also no longer include msvcrt in msvc cmake CI build --- .github/workflows/windows.yml | 8 +++++--- .gitignore | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 22f26d9..917d74e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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 diff --git a/.gitignore b/.gitignore index 9bc38dd..55f521f 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,7 @@ cmake-build-*/ # IDE/Editor config folders .vscode/ .idea/ +.qtcreator/ + +# Clangd cache +.cache/