feat(release): a Linux arm64 binary, built through one cross toolchain
CI / installer (macos-14) (pull_request) Successful in 5s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 33s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (edge) (pull_request) Successful in 39s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Failing after 6s
CI / starter (node) (pull_request) Successful in 32s
CI / installer (macos-14) (pull_request) Successful in 5s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 33s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (edge) (pull_request) Successful in 39s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Failing after 6s
CI / starter (node) (pull_request) Successful in 32s
The installer refused Linux arm64 and sent you to `cargo install --git`, so Graviton, a Raspberry Pi, an ARM CI runner and Docker on Apple Silicon all needed a Rust toolchain to install a CLI whose whole point is not needing one. `rustup target add` could never have fixed it. `tree-sitter` and `tree-sitter-typescript` both compile C through the `cc` crate, so the target needs a real cross C compiler, and Ubuntu ships none for aarch64 musl. zig is one, for both arches — which is why the x86_64 leg moved onto it too rather than keeping `musl-tools` beside it. One toolchain for Linux beats a working one plus a second one that only the new target uses. Verified before touching the pipeline: all four targets cross-compile from macOS arm64 through zig, C included, producing binaries of the right architecture and format. Each release job now also runs the artifact it built, wherever the runner can execute it. agartha is a macOS host executor, so it runs both macOS binaries — the Intel one through Rosetta, confirmed by running the built binary on that host. Rosetta is probed rather than assumed, because a hosted runner may not have it and a smoke that hard-failed there would block a release over the runner's configuration rather than over the binary; the probe is an `if` rather than an AND-list so a missing Rosetta cannot end the step through `set -e`. Whether the aarch64 Linux binary gets started that way is not a property of the pipeline, though — it depends on what `ubuntu-latest` resolves to on the forge that fired. `verify-linux-arm64` removes the dependency by pinning an arm64 Linux runner and installing the published binary there through `install.sh`, so the answer is the same on every release, and the installer's arm64 branch and its checksum verification are covered against the real assets on the way. It carries the same `server_url` guard `publish-crate` already uses, since GitHub offers such runners and Gitea does not, and a job pinned to a label one forge lacks would queue there forever. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
5 files changed
+119
-10
No files matched your search
@@ -104,6 +104,25 @@ is pinned to is `CORE_VERSION` in `src/template.rs`, and each entry below says w
|
||||
was `TS2868: Cannot find name 'Bun'` — meaning `tsc --noEmit`, and therefore
|
||||
`matcha create --check`, failed on every bun project the CLI has ever scaffolded.
|
||||
|
||||
- **A prebuilt binary for Linux arm64.** The installer used to refuse that platform and
|
||||
send you to `cargo install --git` — so Graviton, a Raspberry Pi, an ARM CI runner and
|
||||
Docker on Apple Silicon all needed a Rust toolchain. `rustup target add` alone could
|
||||
never have produced it: `tree-sitter` and `tree-sitter-typescript` compile C through the
|
||||
`cc` crate, and Ubuntu ships no aarch64 musl cross compiler. Both Linux targets now build
|
||||
through zig, which is one, so the arch that was missing and the arch that worked share a
|
||||
toolchain instead of having two.
|
||||
|
||||
Each release job also runs the binary it just built, wherever the runner can execute it —
|
||||
a binary that links and will not start is the failure a release pipeline must not leave
|
||||
for a user's terminal to find. Both macOS binaries run on the arm64 macOS runner, the
|
||||
Intel one through Rosetta, which is probed rather than assumed since a runner without it
|
||||
would otherwise fail a release over its own configuration; and each Linux binary runs wherever
|
||||
`ubuntu-latest` resolves to its architecture. Because that last part depends on the
|
||||
runner pool rather than on the pipeline, a separate job pins an arm64 Linux runner and
|
||||
installs the published binary there through `install.sh` — so the arm64 artifact is
|
||||
started before it reaches anyone, on every release, and the installer's arm64 branch and
|
||||
checksum verification are exercised against the real assets on the way.
|
||||
|
||||
- **`install.sh` resolves `latest` without the release API.** The API is rate-limited to
|
||||
60 requests an hour per IP unauthenticated — an office behind one NAT or a CI runner
|
||||
burns through it — and a throttled response carries no `tag_name`, so the installer
|
||||
|
||||
Reference in new issue
Block a user