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

オープン
#197 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bloxbean/yaci-devkit のほかの issue

bloxbean/yaci-devkit の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。