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

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, github-actions, java
Domain
cli, devops, release

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Java
Stars
70
Forks
21
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bloxbean/yaci-devkit

All issues in bloxbean/yaci-devkit

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.