Skip to content

Add OpenHarmony (OHOS) prebuilt binaries#1264

Open
social4hyq wants to merge 2 commits into
parcel-bundler:masterfrom
social4hyq:master
Open

Add OpenHarmony (OHOS) prebuilt binaries#1264
social4hyq wants to merge 2 commits into
parcel-bundler:masterfrom
social4hyq:master

Conversation

@social4hyq

@social4hyq social4hyq commented Jun 5, 2026

Copy link
Copy Markdown

Add aarch64-unknown-linux-ohos prebuilt binary and runtime support so
lightningcss loads natively on OpenHarmony devices without fallback.

Changes

  • scripts/build-npm.js — add OHOS triple
  • node/index.js — add process.platform === 'openharmony' branch
  • .github/workflows/release.yml — new build-ohos CI job

Design decisions

  • Separate build-ohos job (no Docker) — existing build-linux uses
    Docker containers that cannot be conditionalised per-target
  • Boshen/setup-ohos-sdk@v1.0.0 — same action rolldown uses for its
    OHOS build, avoids 2.3 GB full SDK download
  • process.platform check before detect-libcdetect-libc only
    recognises glibc/musl and misidentifies OHOS as musl
  • No .cargo/config.toml changes — linker configured via step env:

Verification

  • CI: aarch64-unknown-linux-ohos compiles successfully →
    run #27063865363
  • Runtime: tested on HarmonyOS (HongMeng Kernel 1.12.0, arm64) and
    OpenHarmony ci-runner container (6.6.0, arm64)

@social4hyq social4hyq changed the title feat: add OpenHarmony (OHOS) native build targets Add OpenHarmony (OHOS) prebuilt binaries Jun 6, 2026
@social4hyq social4hyq force-pushed the master branch 2 times, most recently from 12fd450 to 0491450 Compare June 6, 2026 13:31
Add aarch64-unknown-linux-ohos build and runtime support.

- scripts/build-npm.js: add OHOS triple
- node/index.js: add process.platform === 'openharmony' branch before detect-libc
- .github/workflows/release.yml: new build-ohos CI job using Boshen/setup-ohos-sdk
@social4hyq social4hyq force-pushed the master branch 2 times, most recently from b8d2b83 to 75bd91b Compare June 6, 2026 13:50
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