Skip to content

ops: release automation (cargo-release / brew tap / crates.io / Nix) - #109

Merged
unhappychoice merged 2 commits into
mainfrom
ops/release-automation
Apr 24, 2026
Merged

unhappychoice merged 2 commits into
mainfrom
ops/release-automation

Conversation

@unhappychoice

Copy link
Copy Markdown
Owner

Closes #16. Follows the same pattern as ../gitlogue (manual-dispatch workflow, conventional-commit changelog, homebrew-tap bump, flake hash update) and adds Nix support as a fifth install surface.

Summary

  • .github/workflows/release.yml — manual-dispatch, version bump → tag → multi-target build → GH Release → crates.io publish → homebrew-tap bump → flake.nix hash update.
  • flake.nix + flake.lock — Nix package (default pinned to release tag, unstable from tree) + devShell. No openssl/perl in nativeBuildInputs because splashboard's networking goes through rustls-tls and gix is pure-Rust.
  • Formula/splashboard.rb — Homebrew formula template; the workflow ports updated URL+sha into unhappychoice/homebrew-tap.
  • generate_changelog.sh — conventional-commit → categorised CHANGELOG (adapted to handle ssh://[email protected]/... origin URL).
  • Cargo.toml — [package.metadata.binstall] so cargo binstall splashboard matches the splashboard-v{ver}-{target}.tgz|zip asset naming.
  • README — four install channels surfaced (cargo / brew / cargo-binstall / GH Releases).

Verification required after merge

  • Create unhappychoice/homebrew-tap repo with Formula/splashboard.rb (seed from this branch's copy) and add HOMEBREW_TAP_TOKEN + CARGO_REGISTRY_TOKEN secrets.
  • First release requires a v0.x.y tag to exist so the flake-hash-update step can prefetch it; workflow handles this by tagging before running nix prefetch.

Test plan

  • Manually trigger Manual Release workflow on main with patch once the tap repo + secrets exist.
  • Confirm artifacts land on the GH Release page (5 tarballs + 1 zip).
  • Confirm cargo install splashboard resolves the new crates.io version.
  • Confirm brew install unhappychoice/tap/splashboard picks up the updated formula.
  • Confirm nix run github:unhappychoice/splashboard succeeds after the hash-update commit lands.

🤖 Generated with Claude Code

…/ brew tap / Nix)

- Manual-dispatch release workflow: version bump, changelog, tag, multi-target build (linux/macos/windows × x86_64/aarch64), crates.io publish, homebrew-tap bump, flake.nix hash update.
- flake.nix + flake.lock for Nix users (pure-Rust, no openssl/perl needed since reqwest uses rustls-tls and gix is native).
- Formula/splashboard.rb template mirroring gitlogue's layout.
- generate_changelog.sh (conventional commits → categorised CHANGELOG).
- [package.metadata.binstall] so cargo-binstall matches the release asset naming.
- README: document 4 install channels (cargo / brew / cargo-binstall / GH Releases).

Closes #16.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Apr 24, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@unhappychoice has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 54 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 1 minutes and 54 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1309e0d1-74d8-47b7-83f3-0a9ad3f2dd50

📥 Commits

Reviewing files that changed from the base of the PR and between 892c667 and 52eb2a9.

⛔ Files ignored due to path filters (1)
  • flake.lock is excluded by !**/*.lock
📒 Files selected for processing (7)
  • .github/workflows/release.yml
  • CHANGELOG.md
  • Cargo.toml
  • Formula/splashboard.rb
  • README.md
  • flake.nix
  • generate_changelog.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ops/release-automation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Apr 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.01%. Comparing base (892c667) to head (52eb2a9).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #109   +/-   ##
=======================================
  Coverage   77.01%   77.01%           
=======================================
  Files          92       92           
  Lines       15508    15508           
=======================================
  Hits        11943    11943           
  Misses       3565     3565           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

ubuntu-20.04 was retired from GH-hosted runners in April 2025, so 22.04 (glibc 2.35) is the floor. Using cargo-zigbuild lets us pin the target's glibc version independently of the runner, producing binaries that run on CentOS 7 / Debian 10 era systems.

Archive step is unchanged — cargo-zigbuild writes to `target/<base-triple>/release/` regardless of the dotted glibc suffix, so the matrix.target-keyed paths still resolve.

Drops the separate ubuntu-22.04-arm runner for aarch64 — zigbuild cross-compiles from the x86_64 runner.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@unhappychoice
unhappychoice merged commit 8b90895 into main Apr 24, 2026
7 checks passed
@unhappychoice
unhappychoice deleted the ops/release-automation branch April 24, 2026 21:02
unhappychoice added a commit to unhappychoice/homebrew-tap that referenced this pull request Apr 24, 2026
URLs and SHAs are placeholders — the splashboard release workflow fills them in on each tag push (see unhappychoice/splashboard#109).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
unhappychoice added a commit that referenced this pull request Apr 24, 2026
The one-liner is the lowest-friction path (no toolchain, no tap setup, just one curl), so it should be the headline. Everything else — cargo / brew / binstall / nix — moves into a collapsed "Other install methods" section.

Nix support is now first-class (flake.nix added in #109), so surface it in the list.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@unhappychoice unhappychoice mentioned this pull request Apr 24, 2026
9 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ops: Release automation (cargo-release / Homebrew tap / crates.io)

1 participant