`codeql-action/init` Makes Metal Toolchain Unavailable on macOS 26 Runners
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 52/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- github-actions, macos, typescript
研究方向
從 issue 中的重現流程開始,在 macOS 26 runner 上比較 github/codeql-action/init@v4 前後的 xcrun metal -v。閱讀 init action 的進入點,並檢查初始化如何影響 Xcode 的選擇或 Metal toolchain 的可見性。當所選 Xcode 的 Metal toolchain 仍然可用,且顯示的檢查與使用 Metal 編譯的建置都成功時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Description
Swift/iOS builds fail after github/codeql-action/init with Xcode 26 on macOS 26 GitHub-hosted runners when the build needs the Metal toolchain.
The failing build error is:
error: error: cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain
Command CompileMetalFile failed with a nonzero exit code
This was originally discussed in actions/runner-images:
- Runner-images issue: https://github.com/actions/runner-images/issues/13014
- Maintainer repro:
xcrun metal -vworks after Xcode selection, then fails aftercodeql-action/init: https://github.com/actions/runner-images/issues/13014#issuecomment-4259404015 - See comment by @v-sergei-pyshnoi , pointing to an issue here: https://github.com/actions/runner-images/issues/13014#issuecomment-4303584735
Reproduction outline
jobs:
codeql-metal-repro:
runs-on: macos-26
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Check Metal before CodeQL init
run: |
xcodebuild -version
xcrun --find metal
xcrun metal -v
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: swift
build-mode: manual
- name: Check Metal after CodeQL init
run: |
xcrun --find metal
xcrun metal -v
- name: Build
run: |
# Run the normal xcodebuild command for an iOS app target that compiles Metal files.
xcodebuild ...
Expected: xcrun metal -v and the xcodebuild invocation continue to find the selected Xcode’s Metal toolchain after CodeQL initialization.
Actual: after codeql-action/init, xcrun metal -v / CompileMetalFile can fail with “missing Metal Toolchain”, even though the runner image appears to have the toolchain available before CodeQL initialization.
Note: Xcode 26 changed Metal Toolchain distribution/visibility, and MacPorts documented extra steps sometimes needed to make the toolchain visible to all users:
https://trac.macports.org/wiki/TahoeProblems#MetaltoolchainisnolongerbundledinXcode
- 主要語言
- TypeScript
- 星號
- 1.7k
- 分支
- 495
- 平均合併
- 1 天 2 小時
- 30 天內合併 PR
- 47
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/codeql-action 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
github/codeql-action#4052 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4185 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4173 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4078 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4008 · 9 則留言 ·
維護者通常 1 天內回覆
查看 github/codeql-action 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
external-issue to-triage
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
diegosouzapw/OmniRoute#15401 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
code-yeongyu/oh-my-openagent#9454 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
smart-village-solutions/sva-studio#1654 ·
維護者通常 1 天內回覆