Skip to content

Add OpenHarmony (OHOS) prebuilt binaries#1264

Open
social4hyq wants to merge 1 commit into
parcel-bundler:masterfrom
social4hyq:master
Open

Add OpenHarmony (OHOS) prebuilt binaries#1264
social4hyq wants to merge 1 commit 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 4 times, most recently from b8d2b83 to 75bd91b Compare June 6, 2026 13:50
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
@SimboDu123

Copy link
Copy Markdown

Hope to quickly adapt to OpenHarmony!!!

@social4hyq

Copy link
Copy Markdown
Author

Hi maintainers, friendly ping on this PR — it's been open for a few weeks. Happy to address any feedback or concerns.

For context, the same Boshen/setup-ohos-sdk approach is already used by Rolldown, Rollup, and OXC, with the OpenHarmony platform packages seeing meaningful usage:

Package Monthly Downloads
@rollup/rollup-openharmony-arm64 12.6M
@rolldown/binding-openharmony-arm64 5.6M

Let me know if any changes are needed. Thanks!

social4hyq pushed a commit to social4hyq/lightningcss that referenced this pull request Jul 12, 2026
workflow_dispatch requires the workflow file on the default branch
(master here, which is the live upstream PR parcel-bundler#1264 branch and can't carry
packaging-only changes). push to this branch has no such requirement.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.

2 participants