Native Yaci DevKit CLI for Linux arm64 (npm, Homebrew, release zip)

未关闭
#197 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, github-actions, java
领域
cli, devops, release

调研方向

The work spans the release workflows in .github/workflows/release-cli.yml and dev-release-cli.yml, the npm packages under npm/ with npm/yaci-devkit/start.mjs, and .github/scripts/homebrew-formula.sh. The blocker is outside this repo: Yaci Store must first publish linux-arm64 native zips, so start by confirming that in the bloxbean/yaci-store release. Done means the arm64 zip, npm package and Homebrew formula build and publish, and the platform check in start.mjs selects the right package.

由索引模型根据 Issue 内容生成。

描述

enhancement

Summary

Publish the native Yaci DevKit CLI for Linux arm64 (aarch64), alongside the existing macOS arm64 and Linux x64 builds: release zip, npm package and Homebrew formula. GitHub now provides hosted Linux arm64 runners (ubuntu-22.04-arm), so it can be built the same way as Linux x64.

The Docker image is not affected: it already ships linux/arm64, with Yaci Store built from source.

Blocker: Yaci Store native build

Yaci Store has no native Linux arm64 build. The rel-native-2.0.7 release of bloxbean/yaci-store has only:

  • yaci-store-2.0.7-linux-x64-{all,n2c}.zip
  • yaci-store-2.0.7-linux-musl-x64-{all,n2c}.zip

DownloadService resolves yaci-store-<version>-linux-arm64-<variant>.zip on Linux arm64, so a native Linux arm64 CLI could run a devnet but up --enable-yaci-store would fail to download Yaci Store. Yaci Store needs to publish linux-arm64 native zips first.

The other components already have Linux arm64 releases, and DownloadService already selects them:

  • cardano-node 11.0.1: cardano-node-11.0.1-linux-arm64.tar.gz
  • Yano v0.1.0-pre17: yano-native-0.1.0-pre17-linux-arm64.zip
  • Ogmios / Kupo: aarch64-linux builds

Changes needed in yaci-devkit (once Yaci Store has arm64 builds)

These were drafted and then removed until Yaci Store is ready:

  • release-cli.yml and dev-release-cli.yml: add ubuntu-22.04-arm to the build and npm matrices. The release zip is then yaci-cli-<TAG>-linux-ARM64.zip (from runner.arch, kept upper case like the existing assets).
  • npm: add a package npm/yaci-devkit-linux-arm64 (@bloxbean/yaci-devkit-linux-arm64), map ubuntu-22.04-arm to it in the npm jobs, add it to npm/yaci-devkit/package.json, and update its version in the publish-yaci-devkit job (and the dry-run job).
  • npm/yaci-devkit/start.mjs: on Linux, pick the package by process.arch (arm64 vs x64).
  • Homebrew: add a Hardware::CPU.arm? branch under on_linux in .github/scripts/homebrew-formula.sh, and download and checksum the Linux arm64 zip in the update-homebrew and homebrew-dry-run jobs.

Things to plan for

  • First npm publish: @bloxbean/yaci-devkit-linux-arm64 does not exist on npm yet. It probably needs one manual publish and trusted-publisher setup on npmjs.com before the CI publish can work. If the arm64 publish fails, publish-yaci-devkit is skipped too, because it waits on all the platform publishes.
  • npm install size: @bloxbean/yaci-devkit lists the platform packages as regular dependencies, so every install downloads every platform's binary (about 166 MB each unpacked). A third platform makes this worse. Consider making them optionalDependencies, with os/cpu fields in each platform package, so npm only fetches the matching one.
主要语言
Java
星标
70
派生
21
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bloxbean/yaci-devkit 的其他 Issue

查看 bloxbean/yaci-devkit 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。