Skip to content

ci: Fix the macOS and Windows builds - #93

Merged
dfaure-kdab merged 1 commit into
masterfrom
ci-fix-macos-windows
Aug 25, 2026
Merged

ci: Fix the macOS and Windows builds#93
dfaure-kdab merged 1 commit into
masterfrom
ci-fix-macos-windows

Conversation

@dfaure-kdab

@dfaure-kdab dfaure-kdab commented Aug 25, 2026

Copy link
Copy Markdown
Member

CI has been red since early July. Both failures come from the runner images moving on, not from anything in KDChart.

macOSbuild (macos-latest, Debug, shared, 6.9.0):

ld: framework 'AGL' not found

Qt links QtGui against the AGL framework, and the SDK on macos-latest no longer ships it (QTBUG-137687). Qt removed that linkage in qtbase commit cdb33c3d562, which was backported and first released in 6.9.2 — two patch releases after the 6.9.0 we pin. Not backported to 6.8, so 6.9.2 or later is the minimum. This bumps the pin to 6.9.3.

Windowsbuild (windows-latest, Debug, shared, 5.15.2):

Qt/5.15.2/msvc2019_64/include/QtCore/qvarlengtharray.h(553): error C2065: 'stdext': undeclared identifier

windows-latest is now Visual Studio 2025, whose STL removed the stdext extension that Qt 5.15.2 uses. That combination cannot be made to work and Qt 5.15.2 will not gain a fix, so Qt 5 moves to windows-2022 (the same image KDReports pins) while Qt 6 stays on windows-latest, which is where new toolchain breakage actually shows up first.

Coverage moves rather than shrinking, and the job count is unchanged — 8 matrix combinations, 2 excluded, 6 kept plus the existing include, matching the 7 jobs of the last run:

before after
Qt 5.15.2 on Windows windows-latest (failing) windows-2022
Qt 6 on Windows windows-latest windows-latest
Qt 6 on macOS 6.9.0 (failing) 6.9.3

One note for review: the exclude entries match both qt_version and architectures rather than qt_version alone. GitHub documents partial matching for excludes, but every other KDAB repo using this pattern excludes a config that has only one key, so nested partial matching is untested here — matching the full object is guaranteed to fire.

Both failures come from the runner images moving on, not from KDChart.

macos-latest no longer ships the AGL framework, which Qt links QtGui
against, so the shared build fails with "ld: framework 'AGL' not found"
(QTBUG-137687). Qt removed that linkage in 6.9.2, so use 6.9.3.

windows-latest is now Visual Studio 2025, whose STL dropped stdext,
which Qt 5.15.2 still uses in qvarlengtharray.h. That combination cannot
work and Qt 5.15.2 will not be fixed, so build Qt 5 on windows-2022 and
keep Qt 6 on windows-latest. The job count is unchanged.
@dfaure-kdab
dfaure-kdab merged commit b0b0021 into master Aug 25, 2026
9 checks passed
@dfaure-kdab
dfaure-kdab deleted the ci-fix-macos-windows branch August 25, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants