Repository navigation
Run Windows Qt 5 and Qt 6 separately and build a static library in CI - #546
Merged
Merged
Conversation
The calculator example failed with C3493: 'outPortIndex' was not captured by a lambda. The custom painter example failed with C2065: 'M_PI' is undeclared. Capture the variable and use a local pi constant.
Both Windows matrix entries had the same name, so the Qt 5 job never ran. Give each entry its own name. Add a job that builds the static library on Windows. It builds the tests only, with examples off, and uses Qt 6.9.2.
paceholder
force-pushed
the
ci/windows-static-build
branch
from
November 22, 2026 21:01
6823e08 to
8d93fff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description
Two changes to
.github/workflows/cmake_build.yml, one commit each.windows-msvc. GitHub merges include entries with the same name, and the later one overwrites the earlier one. The last run on master has only three jobs (windows-msvc,macos-clang,linux-gcc), so Windows with Qt 5.15.2 was never built. The jobs are nowwindows-msvc-qt5andwindows-msvc-qt6.windows-msvc-staticuses Qt 6.9.2 and-DBUILD_SHARED_LIBS=OFF. No job built a static library before, and the Windows linker error in MSVC linker issue when using static version of a library #256 only showed up with it. The job builds and runs the tests. The examples are off, because the tests already link the library withNODE_EDITOR_STATIC. This saves build time. There is no Qt 5 static job for the same reason.Other jobs get the same flags as before (
BUILD_SHARED_LIBS=ON,BUILD_EXAMPLES=ONby default).Testing
BUILD_SHARED_LIBS=OFF: 716 assertions pass.What could fail on the first run: the Windows Qt 5 job has not run for a long time, so it may show an old problem. The static job may show a multiple-definition error, or lose Qt resources (icons, default style) in the static library. If a failure needs a CMake change, that is a separate decision.
Breaking changes?
No library change. The job names change:
windows-msvcbecomeswindows-msvc-qt5andwindows-msvc-qt6.masterhas no required status checks, so no check names break.Related issue
Related to #256 (closed).