Repository navigation
ci: Pin macOS deployment target for libicu dylibs - #35
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
Pull request overview
Pins the macOS ICU dylib deployment target and verifies both architecture slices.
Changes:
- Sets
MACOSX_DEPLOYMENT_TARGET=10.15. - Validates x86_64 and arm64 deployment targets before packaging.
File summaries
| File | Description |
|---|---|
.github/workflows/main.yml |
Pins and validates macOS dylib deployment targets. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
morning4coffe-dev
left a comment
There was a problem hiding this comment.
Reviewed 548cc9182d2c. The deployment-target environment is exported before both configure and make, and verification runs on the universal outputs before upload/packaging.
CI evidence: run 34700276970 is associated with this exact PR head and completed successfully. Both macOS architecture jobs and the universal job passed. The verifier logged libicuuc and libicudata at minos 10.15 for x86_64 and 11.0 for arm64.
I also downloaded only that run's libicu_osx_universal artifact (10299623554) and independently decoded the actual Mach-O fat headers/load commands on Windows. Both dylibs contain the expected x86_64 and arm64 slices, platform macOS, with minimum versions 10.15.0 and 11.0.0 respectively. This checks the resulting binaries, not merely the configured environment variable.
The lower target remains separate from the consuming .NET runtime's supported OS floor. The intended release-branch/package follow-up is also still needed before consumers receive these binaries.
Validation scope: source review, actual CI logs and binary-header inspection. I did not locally load or execute the dylibs on macOS.
|
Tick the box to add this pull request to the merge queue (same as
|
|
Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue. |
|
/unobot prepare-release --commit-message-pattern "ci: Set version to '{0}'" |

GitHub Issue (If applicable): unoplatform/uno#24496
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The
build_libicu_osxjob runsrunConfigureICU macOSonmacos-15/macos-15-intelrunners without a deployment target, so clang stamps the runner's OS version into the dylibs. Every publishedUno.icu-macos(77.1.2, 77.2.1, 77.3.2) therefore carriesLC_BUILD_VERSION minos 15.0on both slices, whilelibUnoNativeMac.dylibinUno.WinUI.Runtime.Skia.MacOSis stamped 10.15 / 11.0 and .NET itself supports macOS 14+. The iOS and tvOS jobs already pin-mios-version-min/-mtvos-version-min; the macOS job was the odd one out.Full analysis, including why dyld does not enforce the stamp at load time, is in unoplatform/uno#24496.
What is the new behavior?
ICU_MACOS_DEPLOYMENT_TARGET(10.15, matchinglibUnoNativeMac) is exported asMACOSX_DEPLOYMENT_TARGETfor configure and make inbuild_libicu_osx. The arm64 slice is clamped to 11.0 by the toolchain.build_libicu_osx_universalgains a Verify deployment target step that fails the build if either slice of either dylib drifts from the expected value, so a future runner-image bump cannot silently move the floor again.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults. — N/AOther information
Validation
build_libicu_osxcommands plusMACOSX_DEPLOYMENT_TARGET=10.15. Build succeeded with no deployment-target warnings; bothlibicuuc.dylibandlibicudata.dylibcome out stampedminos 10.15(SDK 26.2). Loaded throughNativeLibrary.Loadin the same order Uno uses (icudata, then icuuc):u_getVersion_77returns 77.1.0.0 andu_isupper_77answers correctly.libicuuc (x86_64) is stamped for macOS 15.0, expected 10.15), and passes against the locally built dylib.sort -Vand theotool/awkextraction were exercised on macOS (BSD userland), which is what the runners use.Follow-ups
Uno.icu-macos77.3.2, so this should be backported torelease/stable/77.3and shipped as 77.3.x, thenUnoICUVersionbumped in unoplatform/uno (master and the active release branches).Internal Issue (If applicable):
🤖 Generated with Claude Code