mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3824] [CLOSED] [Other] CI: build Metal with an explicit macOS 26 SDK #4796
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4796
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3824
Author: @i-Vladimir-i
Created: 10/23/2026
Status: ❌ Closed
Base:
main← Head:codex/metal-ci-sdk26📝 Commits (1)
799d1bf[Codex]: select an explicit macOS 26 SDK for Metal CI📊 Changes
1 file changed (+12 additions, -1 deletions)
View changed files
📝
.github/workflows/metal-build.yml(+12 -1)📄 Description
Problem and result
The Metal compile/link job selects
macos-14and currently uses Xcode 15.4. On #2492 at53b7f352c702a1fa144b7b4d1260f858b6fdce62, it fails before linking because the SDK does not declareMTLGPUFamilyMetal4,MTLCompileOptions.mathMode,MTLMathModeFastorMTLMathModeSafe.Observed job.
The failing runtime source, Metal tree and workflow are byte-identical to main
5c8dd322528cc84f68f461ad54a506b9da8fa8d4; the padding PR changes none of them.This candidate gives the existing CI build an SDK that declares the APIs it uses. It does not change engine
source, user setup, supported runtime versions, runtime defaults, kernels or the padding PR.
The first Metal CI run on this exact head
successfully configured, compiled and linked the full
stratatarget. This is compile/link evidence, not GPU execution.Related discussion and approach
Related: #2492, #2388 and #2987. The last two are existing, tracker-reset-closed proposals from nullspeech
for older-SDK compilation and runtime shader compatibility; neither is merged. This is not a replacement
for those proposals and does not claim to fix source builds or prompt kernels on older SDKs.
New evidence about that separate compatibility problem belongs in those original threads.
Keep this CI prerequisite separate from the gfx12 padding PR under CONTRIBUTING's one-problem-per-PR rule.
Use
macos-15and explicitly select/Applications/Xcode_26.0.1.app/Contents/DeveloperwithDEVELOPER_DIR.Changing the runner label alone is insufficient: its documented default is Xcode 16.4 / SDK 15.5.
Add an early toolchain/version check, then run the unchanged pinned dependency, configure and engine-link steps.
GitHub's macOS 15 arm64 image inventory
lists Xcode 26.0.1 and macOS SDK 26.0. Image contents can change; a missing pin must fail rather than silently
fall back to an older SDK. No third-party toolchain-selection action or new permission is needed.
Validation
Tested commit:
799d1bf316b5826b1c5a4f5696c1720598dc320b, based on main5c8dd322528cc84f68f461ad54a506b9da8fa8d4; single-file workflow diff, 12 insertions / 1 deletion.Development host: Linux 6.8.0-147, Python 3.12.3, no Apple SDK or macOS runner available.
Passed:
Xcode 26.0.1 (17A400), macOS SDK 26.0, AppleClang 17.0.0.17000319.
The unchanged configure and
cmake --build build-metal --target stratasteps passed;the log includes
[82/83] Linking CXX executable strata.python validate_workflow.py: 7 unittest cases, no failures/errors/skips, exit 0; repeated on the exactcommitted head above (Python 3.12.3, 0.051 s).
This is an external development validation script, not an Apple-platform test or a proposed engine test.
bash -nfor every run step, preservation of all other workflow fields, pins, permissions,path filters, timeouts, configure/link commands; the preflight runs before dependency installation/downloads.
xcodebuild/xcrunfixtures: SDK 14.5/15.5/25.0,malformed and empty responses fail; SDK 26.0/26.2/27.0 pass. Xcode/SDK-query failures propagate immediately.
git diff --check, exit 0. The patch applies cleanly to #2492 withgit apply --check.grid_pad_test1/1 each, exit 0.These are bounds/rules tests, not new builds or GPU execution, and do not validate the Metal fix.
Failed:
@available.This is an expected negative control of language behavior, not reproduction using Apple's SDK on Linux.
Not run:
Metal source/workflow, not a second newly run main job.
Limits and targeted help
This was opened as a Draft with a request for a real macOS compile/link check. That check has now passed in
the first CI run linked above, and this PR is now ready for review.
Please review the CI toolchain choice and the separate older-SDK discussions. Apple runtime/shader validation
remains unrun and is not established by this compile/link job.
Once the CI fix lands in main, #2492 can take updated main and run its actual Metal check again.
Do not interpret an SDK update for this compile-only job as a new minimum macOS runtime policy.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.