Skip to content

ci(release): incubating Android (aarch64/armv7) and OpenHarmony legs - #247

Merged
caomengxuan666 merged 1 commit into
masterfrom
ci/release-android-ohos
Oct 10, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
ci/release-android-ohos

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

背景

roadmap #207 的 Android / OpenHarmony release 腿。沿用 #210(cross-target-check)→ #221(musl smoke-gate)确立的演进模式:先放实验腿跑绿,再收紧成门禁。

改动(.github/workflows/release.yml,+215 行,不动现有 job)

build-android(aarch64 + armv7,真链接)

  • nttld/setup-ndk(r27c)提供 bionic clang driver,CARGO_TARGET_*_LINKER 指向 API 24 wrapper,cargo build --locked --release 真链接(rubash#456 已修完 bionic cfg 面:AT_EACCESS、confstr、sa_restorer、32 位 off_t/S_IFMT)。
  • 产物:niubash-v<ver>-android-{aarch64,armv7}.zip(niu + README + LICENSE),命名沿用现有 niubash-v<ver>-<os>-<arch> 惯例,artifact 上传到 workflow run。
  • runner 上无法执行 bionic 二进制,四项 smoke gate 不可能跑。替代验证:file 断言 ELF 架构匹配,并在 step summary 明示「未 smoke」。这个 artifact 是 build-verified,不是 smoke-verified。

build-openharmony(aarch64-unknown-linux-ohos,check-only,刻意为之)

  • Tier 2 with host tools,cargo check --workspace --locked 不需要 OHOS SDK——与 ci.yml cross-target-check 的 ohos target 同一结论。
  • 真链接需要 OHOS SDK 的 clang wrapper:runner 无预装,也没有能负责任 pin 住的版本化 SDK 下载源,所以第一版不产出二进制——上传 check log 作为 artifact。给一个连链接都过不了的腿打裸二进制,比不上传更违反本仓库「无验证不出产物」的红线。
  • 按 docs: add Platform Support page (status matrix, HarmonyOS, uname behavior) #225–docs: record what the HarmonyOS bash actually is #227 文档的结论(HNP 只能装进签名 HAP 走应用市场分发),裸二进制本就不是最终发布形态;后续 PR 再调研 pin 住的轻量 SDK + 真链接。

门禁

docs

docs/src/platform-support.md 状态矩阵加 Android 行 + 新增 Android 小节;OHOS 行标注 check-only。

验证

本地已验证:

  • workflow YAML 解析通过(pyyaml),job 结构 / release.needs 不变确认
  • actionlint 1.7.7 对本 PR 全部新增内容零告警(唯一一条 overwrite_files 告警是 master 上 release job 已有的,与本 PR 无关)
  • 未动 Rust,无需 cargo fmt

待 CI 验证(本 PR 无法本地覆盖):

  • build-android (aarch64):NDK 下载、bionic 真链接成功
  • build-android (armv7):同上(32 位 bionic,rubash#456 的 off_t/S_IFMT cfg 面)
  • build-openharmony:ohos target cargo check 在 tag 源上绿
  • 两个 job 失败时 release 流程不受阻塞(continue-on-error 生效)

明确不声称的: android zip 未在任何 Android 运行时上 smoke;ohos 未链接。这是本 PR 的已知边界,不是疏漏。

后续

  1. 两腿绿后去掉 continue-on-error、进 release needs(或先单独收紧 android)
  2. android 上真机/模拟器 smoke(termux 类环境)
  3. ohos:pin 版本的 OHOS SDK 轻量下载 → 真链接 → 再评估 HNP 形态

Refs #207(部分推进 Android/OH 线)

build-android: aarch64-linux-android + armv7-linux-androideabi, real
bionic link via nttld/setup-ndk (r27c, API 24 clang drivers), zip
artifact per leg, ELF-arch verification in place of the (impossible
on-runner) runtime smoke, disclosed on the step summary.

build-openharmony: aarch64-unknown-linux-ohos, check-only by design
(Tier 2 with host tools, same target ci.yml gates); real linking needs
the OHOS SDK clang wrapper, which has no runner preinstall and no
version-pinned fetch path yet, so no binary is produced or shipped
from this leg -- the artifact is the check log.

Both jobs: continue-on-error, NOT in the release needs -- same
incubation shape the musl leg followed before #221 tightened it.
Tighten only after they run green for a cycle.

docs: platform-support status matrix rows + an Android section.

Refs #207
@caomengxuan666
caomengxuan666 merged commit 15de55a into master Oct 10, 2026
3 of 9 checks passed
@caomengxuan666
caomengxuan666 deleted the ci/release-android-ohos branch October 10, 2026 05:16
caomengxuan666 added a commit that referenced this pull request Oct 10, 2026
…notes draft (#254)

- Version 1.3.4 -> 1.4.0 (workspace root + crates/niubash-runtime;
  Cargo.lock synced; internal niubash-runtime dep requirement aligned
  1.2.5 -> 1.4.0). The rubash engine requirement stays 1.3.4: it is
  semver-open (^1.3.4 admits the engine's 1.4.0), and the committed
  [patch] resolves it to the local ../rubash worktree, whose Cargo.toml
  still says 1.3.4 until the engine cuts its own release.
- CHANGELOG: the Unreleased section becomes [1.4.0] - 2026-10-10. Also
  repairs the committed merge damage from #243 (stray conflict marker
  and the #241 doctor-advice entry glued onto the carapace entry) and
  folds in the merged cycle: #235 #239 #246 #247 #250 #251 #252 #253
  plus a compact rubash 1.4.0 engine summary. #240's P2-batch content
  stays under [1.3.4] where the file already records it (no dup).
- docs/release-notes-1.4.0-draft.md: zh+en draft release notes
  (Added / Fixed / Performance), winuxcmd #1151/#1154-#1157 marked as
  in-flight for the coordinator, plus the local verification log:
  release build PASS (niu.exe 10.6 MB), MSIX packed unsigned with a
  placeholder identity (5.1 MB), wpm-source main carries all four
  preinstall packages, and cargo publish --dry-run chain findings
  (rubash -> niubash-runtime -> niubash, blocked on the engine's
  crates.io release).

No tag, no release workflow trigger, no in-flight PRs merged.
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