Repository navigation
ci: 发版候选的 Intel 包改在 Apple 芯片的 macos-15 上交叉构建 - #247
Merged
Merged
Conversation
0.3.1 的候选(42733161564)里 Intel 腿用了 26.8 分钟,其中 macos-15-intel 上冷编译 21.2 分钟; 同样的构建在 macos-15 上 12.0 分钟。macos-15-intel 是 GitHub 最后一个 x86_64 镜像,2027-08 下线。 - release-candidate.yml:x86_64-apple-darwin 腿的 runner 改为 macos-15,构建本来就带 --target "$MACOS_TARGET";release-targets.json 同步为 runner macos-15、cross true。 - check-macos-bundle.sh 不变:每个 Mach-O 只含本腿架构、minos ≤ 11.0,并运行包里的 --version(在 Apple 芯片上由 Rosetta 2 执行)。 - Intel 真机运行仍在 ci.yml 的 macos job 与 install-scripts.yml 的 macos-15-intel 上。 - 新测试 test_the_intel_package_builds_on_apple_silicon 在改动前失败(runner 为 macos-15-intel)。
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #247 +/- ##
==========================================
- Coverage 93.57% 93.57% -0.01%
==========================================
Files 489 489
Lines 85860 85860
Branches 4909 4909
==========================================
- Hits 80347 80342 -5
- Misses 4844 4849 +5
Partials 669 669
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
3 of 4 tasks
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.
问题
0.3.1 的发版候选(run 42733161564)里,Intel 腿
Bundle x86_64-apple-darwin用了 26.8 分钟,其中在macos-15-intel上冷编译 21.2 分钟;同样的构建在macos-15(Apple 芯片)上 12.0 分钟。Linux 腿修好之后(#246),Intel 腿就是候选里最慢的一条。另外macos-15-intel是 GitHub 最后一个 x86_64 镜像,2027-08 下线。改动
release-candidate.yml:x86_64-apple-darwin腿的 runner 从macos-15-intel改为macos-15。构建步骤本来就带--target "$MACOS_TARGET",所以这条腿变成在 Apple 芯片上交叉构建 Intel 包;头部注释写明原因和检查方式。.github/release-targets.json:同步为runner: macos-15、cross: true。check-macos-bundle.sh要求每个 Mach-O 只含本腿架构、minos ≤ 11.0,并运行包里的--version、要求是本次版本;在 Apple 芯片上这一步由 Rosetta 2 执行 x86_64 二进制。ci.yml的macos-x64job 和install-scripts.yml仍在macos-15-intel上跑。docs/runbook.md(发布 · 构建腿)、docs/roadmap.md、docs/acceptance.md。验证
scripts/release/test_release_workflows.py@test_the_intel_package_builds_on_apple_silicon在改动前失败(x86_64-apple-darwin的 runner 是macos-15-intel),改动后通过;发布脚本测试 220 个通过。actionlint .github/workflows/release-candidate.ymlmake verify(74a5669d,rebase 到 build: voltip-server 的发布构建拆成 16 个代码生成单元 #246 之前的提交):overall_exit=0。rebase 无冲突。voltip 0.3.1,并把产物与已发布的Voltip_0.3.1_x64.app.tar.gz逐个 Mach-O 比对(架构、minos、依赖的动态库、大小 ±5%)。不通过就立即回退这次改动。.github/scripts/check-no-production-hosts.sh)风险与回退
只改发版候选里 Intel 包的构建机器。最坏情况是交叉构建的包和原生构建的不一致,上面的 backfill 比对就是为了在下次发版前发现它。回退就是还原这次提交。