Commit 380fa5d
committed
fix(macos): download Metal Toolchain before release compile
macOS release jobs (arm64/intel) failed at "Check release compile":
error compiling metal shaders to .air; cannot execute tool 'metal'
due to missing Metal Toolchain
Xcode 26 split the Metal Toolchain into a separately downloadable
component that the macos-26 runner image does not preinstall. The
build compiles shaders through the Xcode at MD_APPLE_SDK_ROOT (an RC
Xcode on the new image), which differs from the one setup-xcode
selects, so the toolchain setup-xcode pulls is not the one used.
Add a prepare_environment step that downloads MetalToolchain for the
Xcode actually used for compilation (MD_APPLE_SDK_ROOT, falling back to
xcode-select -p). The download is idempotent.1 parent 8ff3ce6 commit 380fa5d
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
0 commit comments