8 Commits
Author SHA1 Message Date
chrnx 64ec413c25 ci: build macOS on macos-15 on GitHub
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 38s
CI / starter (bun) (pull_request) Successful in 41s
CI / starter (deno) (pull_request) Failing after 36s
CI / starter (edge) (pull_request) Successful in 45s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (node) (pull_request) Successful in 42s
GitHub retired the macos-14 image, so both darwin release builds for v26.11.0-rc.1 were cancelled before running a step and the GitHub release shipped without macOS binaries (uploaded afterwards from the Gitea build of the same tag). On Gitea, macos-14 is the self-hosted runner's label, so the label only changes on GitHub.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-11-17 17:53:44 -06:00
chrnx 99c8578120 ci: move workflow actions off the deprecated Node 20 runtime
CI / installer (macos-14) (pull_request) Successful in 10s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (edge) (pull_request) Successful in 37s
CI / core-freshness (pull_request) Has been skipped
CI / starter (node) (pull_request) Successful in 31s
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
actions/checkout and actions/setup-node v4 -> v5, softprops/action-gh-release
v2 -> v3; all three run on Node 24. setup-deno@v2, setup-bun@v2 and
crates-io-auth-action@v1 already resolve to Node 24 releases. Jobs keep
node-version 22.

Refs Green-Tea/core#103

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-10-17 22:55:51 -05:00
chrnx 6304ad7e24 ci: use the expression form for the tag ref, not the env var
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 32s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 37s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (node) (pull_request) Successful in 32s
promote.yml handed v26.8.0-beta.0 to GitHub with `${{ github.ref_name }}`, so
that form is proven on this act_runner. `$GITHUB_REF_NAME` is not — act_runner
0.2.13 may or may not export it, and the failure mode is silent in the worst
way: `git push github "refs/tags/"` with an empty name, a tag that never leaves
this forge, and a release that simply never happens on GitHub.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-05 17:37:16 -05:00
chrnx 483cc23dea ci: make this forge the gate it was meant to be, and stop pushing every tag
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 30s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 36s
CI / starter (node) (pull_request) Successful in 32s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
Two problems in one place, one of them latent since before this release.

`promote.yml` and `release.yml` both fired on the same `v*` tag push, so Gitea
started building and handed the tag to GitHub at the same moment — and the tag
arriving there is what starts GitHub's build and its crates.io publish. The local
build was therefore a parallel opinion rather than a check: by the time it could
have said no, the crate was already going out, and crates.io has no unpublish,
only yank. Tag promotion moves into `release.yml` behind `needs: build`, so the
sequence is what it was always described as — Gitea builds all four targets and
runs every artifact it can, and only then does GitHub hear about the tag.

`promote.yml` also ran `git push github --tags` on every push to `main`, which
has been failing every time. The tags diverged before this: `v26.7.0` points at
`371c5f7` here and `2a3dae9` there, and `v26.8.0-beta.0` is annotated here and
lightweight there — so the push is a non-fast-forward on refs that already exist.
`main` itself was pushed by the line above and always succeeded, so the job went
red while its actual work had already been done, which is the worst shape a CI
failure can take: permanent, and therefore ignored on the day it means something.
Dropped rather than forced, because reconciling the divergence rewrites what a
published tag points at — a decision, not a fix. New tags are unaffected; they go
through `release.yml` now.

Branched from `main` rather than `develop` so it is active for the v26.9.0-beta.0
tag, and so merging it back carries the release's version bump to `develop` with
it.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-05 17:32:30 -05:00
chrnx 87cf3eac82 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
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>
2026-09-05 16:46:25 -05:00
chrnx 88090f34a2 fix(install): resolve latest without the rate-limited API, and test the installer
`install.sh` asked the release API for the latest tag. That API allows 60
requests an hour per IP without a token, which one office behind a NAT or a CI
runner exhausts — and a throttled response has no `tag_name`, so the installer
reported "could not resolve latest release tag" and gave no hint that rate
limiting was the cause. It now follows the `/releases/latest` redirect, which
carries no such limit and which Gitea implements identically, and keeps the API
as the fallback for the wget path that cannot read the effective URL. Verified
against the real release: resolves v26.8.0-beta.0, verifies the checksum, and
the installed binary runs.

Releases with a hyphen in the tag are now flagged as prereleases. Nothing set
the flag, so every beta answered `/releases/latest` — the very thing the
installer resolves by default. That is harmless while every release is a beta
and wrong the moment a stable one exists, because the next beta published after
it would silently displace it for everyone installing without MATCHA_VERSION.

`test_install.sh` has existed since the installer landed and no workflow ever
ran it — the same shape as the starter gap: a check that exists, passes, and
guards nothing. CI runs it now on Linux and macOS with shellcheck alongside, and
it covers a third case, since the branch this commit changes fails by producing
a message: an unresolvable `latest` must name MATCHA_VERSION and must leave no
binary behind.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-05 16:12:36 -05:00
chrnx b8aac3bb6a ci: publish to crates.io via OIDC Trusted Publishing (no token)
Replaces CARGO_TOKEN with crates.io Trusted Publishing: id-token: write + rust-lang/crates-io-auth-action exchanges the OIDC token for a short-lived crates.io token. Requires a trusted publisher configured on crates.io (Expressive-Tea/matcha, release.yml).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:54:25 -05:00
chrnx dfba02a7ce feat: rename crate to matcha-cli + two-forge CI/CD workflows
Crate renamed matcha->matcha-cli for crates.io (the name matcha is taken); binary stays matcha. Adds description/license/repository and CalVer prerelease version. New .github/workflows: ci (fmt+clippy+test), promote (main+tags -> GitHub), release (relocated from .gitea + crates.io publish on GitHub only). Cargo.lock regenerated; gate passes locally.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 13:58:18 -05:00