Skip to content

ci(platform): 钉住 macOS 13 下限 + Intel(x86_64) 编译门禁 - #102

Merged
wangzhizhou merged 1 commit into
mainfrom
ci/platform-floor-gate
Oct 26, 2026
Merged

wangzhizhou merged 1 commit into
mainfrom
ci/platform-floor-gate

Conversation

@wangzhizhou

Copy link
Copy Markdown
Contributor

本仓库是产品伞里的「逻辑层」代表产物:有意钉在 macOS 13,让卡在 Ventura 的 Intel Mac 仍能用 CLI(GUI OrzMC.app 要求 14,因为 @Observable)。此前没人拦着把 platforms: 抬到 14,也没人验 Intel 切片能不能编。

新增 platform job(macos-15)

  1. 声明下限必须是 13 —— 读 Package.swift 的 .macOS(.v13),抬到 14 直接红(并提示同步父仓库 docs/platform-support.md)
  2. native 产物 minos ≤ 13 —— otool -l orzmc 读 LC_BUILD_VERSION 的 minos(实测本机 = 13.0)
  3. x86_64 能编 —— swift build --arch x86_64 + lipo -archs 断言含 x86_64
    (构建插件 swift-openapi-generator 是 x86_64 可执行文件,所以 job 里先确保 Rosetta 2)

README

补「平台下限(有意钉住,别抬)」:macOS 13 × arm64/x86_64,并指向父仓库 docs/platform-support.md(规则、证据、Intel 冒烟清单)。

本仓库是产品伞里的"逻辑层"代表产物:**有意钉在 macOS 13**,让卡在 Ventura 的
Intel Mac 仍能用 CLI(GUI `OrzMC.app` 要求 14,因为 `@Observable`)。
在此之前没人拦着把 `platforms:` 抬到 14、也没人验 Intel 切片能不能编。

新增 `platform` job(macos-15)三件事:
1. **声明下限必须是 13**:读 `Package.swift` 的 `.macOS(.v13)`,抬到 14 直接红;
2. **native 产物 minos ≤ 13**:`otool -l orzmc` 读 `LC_BUILD_VERSION` 的 `minos`;
3. **x86_64 能编**:`swift build --arch x86_64` + `lipo -archs` 断言含 `x86_64`
   (构建插件是 x86_64 可执行文件,所以先确保 Rosetta)。

README 补平台下限说明 + 指向父仓库 `docs/platform-support.md`。
@wangzhizhou
wangzhizhou merged commit c9801f2 into main Oct 26, 2026
9 checks passed
@wangzhizhou
wangzhizhou deleted the ci/platform-floor-gate branch October 26, 2026 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant