mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3870] [CLOSED] [Other] CI: build the Metal engine on macos-26 (the Metal 4 API needs the macOS 26 SDK) #4809
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#4809
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/3870
Author: @stuchapin909
Created: 10/23/2026
Status: ❌ Closed
Base:
main← Head:ci/metal-macos-26📝 Commits (1)
d1ce044CI: build the Metal engine on macos-26 (the Metal 4 API needs the macOS 26 SDK)📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
.github/workflows/metal-build.yml(+3 -1)📄 Description
Problem and result
The
metal-linkjob (.github/workflows/metal-build.yml) fails on every pull request that touchessrc/,include/ormetal/, before it reaches the PR's own files:The job runs on
macos-14(macOS 14 SDK).mtl_rt.mmusesMTLGPUFamilyMetal4(macOS 26 SDK) andMTLCompileOptions.mathMode(macOS 15 SDK) behind@available, which is a run-time check; the names must still exist in the SDK at compile time. Withruns-on: macos-26the job builds and links again.Related discussion
none. The same failure shows on #3869 and on the other PRs opened today (decode-timing, ram-adapt-stage, window-trace, the GP100 series, f-mac-update-model-silent).
Approach
One line:
runs-on: macos-14->macos-26, plus a two-line comment saying why. It matches themetal-cpp_26.zipthe job already downloads. The engine source is unchanged. Guarding the two calls with SDK-version#ifs would also fix builds on older Xcode, but it touches engine code I cannot test on a Mac, so I left that out.Validation
Passed:
metal-build.ymlviaworkflow_dispatchon this branch (d1ce044b, on main7ddc17a3) in my fork: every step passed, including "Build and link the engine": https://github.com/stuchapin909/Strata/actions/runs/39992739258Failed:
Not run:
Limits
Building from source on a Mac with an SDK older than macOS 26 still fails the same way; this only fixes CI.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.