Skip to content

ci: build linux arm64 prebuilds - #260

Merged
yanyiwu merged 3 commits into
yanyiwu:masterfrom
zy6p:ci/linux-arm64-prebuilds
Mar 7, 2026
Merged

ci: build linux arm64 prebuilds#260
yanyiwu merged 3 commits into
yanyiwu:masterfrom
zy6p:ci/linux-arm64-prebuilds

Conversation

@zy6p

@zy6p zy6p commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Problem

nodejieba publishes prebuilt binaries via node-pre-gyp, but GitHub Releases currently only contain linux-x64-glibc artifacts. On Linux arm64, install falls back to source build (or hits 404) because the release assets are missing.

Example install log (Linux arm64):

node-pre-gyp http GET https://github.com/yanyiwu/nodejieba/releases/download/v3.5.5/nodejieba-v3.5.5-node-v115-linux-arm64-glibc.tar.gz
node-pre-gyp ERR! install response status 404 Not Found

Fix

  • Add ubuntu-22.04-arm to the CI matrix for both test.yml and github_release.yml
  • Install basic build deps on Linux runners
  • (Release workflow) add a workflow_dispatch input tag so maintainers can backfill missing assets for an existing tag (e.g. v3.5.5)

After this, GitHub Releases will include e.g. nodejieba-v{version}-{node_abi}-linux-arm64-glibc.tar.gz alongside existing x64 artifacts.

Notes

This keeps the existing packaging flow (node-pre-gyp package + softprops/action-gh-release).

@yanyiwu
yanyiwu merged commit 431bbe7 into yanyiwu:master Mar 7, 2026
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