Repository navigation
ci(darwin): macOS runner 从 macos-14 换成 macos-15 - #2637
Merged
Merged
Conversation
GitHub 的 macos-14 runner 镜像 2026-11-02 下线,下线前已在做计划性停用演练, bun-binary-darwin 等 job 因此被直接取消。ci.yml 的 bun-binary-darwin 与 release.yml 的 desktop、bun-binaries 的 darwin 腿、sign-darwin-binaries 统一换成 macos-15(同为 arm64,darwin-x64 仍是交叉编译,ci 与 release 的 runner 继续一致)。工作流里没有写死 Xcode / SDK 版本,产物名与缓存键也不含 runner 名。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 31, 2026 14:28
Owner
Author
deepcoldy
pushed a commit
that referenced
this pull request
Oct 31, 2026
同步 #2637:darwin 编译/签名门的 macOS runner 从退役的 macos-14 换成 macos-15(ci.yml / release.yml runs-on + 注释,release-darwin-codesign-gate 测试跟随)。纯 CI 改动,与本 PR src/test 零交集;master 上 darwin 已在 macos-15 实跑成功,消除此前 macos-14 供给侧取消。 Co-Authored-By: Claude Code <[email protected]>
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 378fb04…ebf9695be(3 个提交),同批合入的还有 #2634 #2627,失败不一定由本 PR 引起。
|
|
🚀 Released in v3.56.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
GitHub 的 macos-14 runner 镜像将于 2026-11-02 下线,下线前会做计划性的停用演练(brownout)。演练期间,跑在 macos-14 上的 job 还没开始执行就会被取消,GitHub 的注释原文是:
master 和 #2624 的
bun-binary-darwin都已经因此被取消过。按维护者定的方案 A,所有 macOS runner 统一换成 macos-15,它和 macos-14 一样是 arm64:.github/workflows/ci.ymlbun-binary-darwinruns-on: macos-14→macos-15.github/workflows/release.ymldesktop(Electron 签名与公证).github/workflows/release.ymlbun-binaries的 darwin 腿(matrixos).github/workflows/release.ymlsign-darwin-binaries(Developer ID 签名)另外同步了两处描述「当前用哪个 runner」的注释。记录历史实测的注释(「3.18.14 时 macos-14 runner 放过了坏签名」之类)原样保留,因为它们说的是当时的 runner。
核对项
xcode-select、DEVELOPER_DIR、setup-xcode或 SDK 版本,用的是 runner 默认的 Xcode;xcrun stapler、codesign、spctl都按名字调用。electron-builder.yml只设了hardenedRuntime、entitlements 和x64ArchFiles,没有设最低系统版本或 SDK。botmux-macos和bun-binaries-${{ matrix.artifact }}(取值darwin),与 runner 无关;两个工作流都没有用actions/cache,也没有任何 key 引用runner.os或matrix.os。test/release-darwin-codesign-gate.test.ts有一条用例检查「ci 的 darwin runner 与 release 的一致」,按关系比较,没有写死名字,改后照常通过。合入前的 darwin 构建实测
现有的
release.ymlworkflow_dispatch 不能用来做这次实测,原因有三:refresh-desktop-assets会把 macOS 产物替换到已有的 GitHub Release 上;macos-signing环境审批,并且会提交 Apple 公证。所以单独建了一个不合入的探针分支
ci/macos-15-runner-probe。它基于本分支,只把release.yml换成只构建 darwin 的版本:bun-binariesdarwin 腿和desktopjob 原样取出构建步骤,runner 用 macos-15;用
gh workflow run release.yml --ref ci/macos-15-runner-probe触发。实测结果:run 41210228695 全绿,runner 镜像为
macos-15-arm64。probe-darwin-bun-binaries(原bun-binaries的 darwin 腿)codesign --verify --strict都通过(valid on disk/satisfies its Designated Requirement),其中 darwin-x64 是交叉编译的;skia native 两者都在;host-arch smoke 全部通过(codesign、capabilities、version、selfcheck、plugin service/supervisor、self-spawn、dashboard、http、frontend、self-destruct guard);产出 artifactbun-binaries-darwin(约 152 MB)probe-desktop-unsigned(原desktop的构建部分)Botmux-…-mac-universal.dmg与.zip;Botmux.app/Contents/MacOS/Botmux是含 x86_64 和 arm64 两种架构的 universal Mach-O;产出 artifactbotmux-macos-probe-unsigned(约 675 MB,保留 3 天)探针没有覆盖的部分:Developer ID 签名、Apple 公证与 stapler 校验(需要
macos-signing环境)、sign-darwin-binariesjob。这些会在下一次真实发版时第一次在 macos-15 上执行。没有发布、没有打 tag、没有上传 release:探针分支的 release.yml 里没有对应步骤,也没有 secrets 和 environment。探针分支已删除。
签名与公证
维护者确认这次不验签名和公证:CI 全绿、不签名的 darwin 探针跑通即可合入。Developer ID 签名和公证会在下次发版时第一次在 macos-15 上跑,那次发版要留意 darwin 的签名步骤,即
sign-darwin-binaries和desktop两个 job 里的签名、公证与 stapler 校验。影响面
macos-signing环境里的证书和 Apple 凭据,这次探针没有覆盖,会在第一次真实发版时首次在 macos-15 上执行。测试
本 PR 自己的 CI 里,
bun-binary-darwin就是在 macos-15 上跑的,这一项的结果也就是 PR 侧的实测。来源:维护者确认的方案 A;11-02 前需要合入。
🤖 Generated with Claude Code