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

Aperta
#197 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, github-actions, java
Ambito
cli, devops, release

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Java
Stelle
70
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bloxbean/yaci-devkit

Tutte le issue di bloxbean/yaci-devkit

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.