Skip to content

Replace cargo-dist with simplified release workflow#263

Merged
kejadlen merged 1 commit intomainfrom
alpha/push-uxkmnsoxlxmy
Jan 28, 2026
Merged

Replace cargo-dist with simplified release workflow#263
kejadlen merged 1 commit intomainfrom
alpha/push-uxkmnsoxlxmy

Conversation

@kejadlen
Copy link
Contributor

@kejadlen kejadlen commented Jan 27, 2026

Might be easier to look at the new GHA by itself: https://github.com/Gusto/scope/blob/867b809cdae95c4025d59e405316534f730ba1f1/.github/workflows/release.yml

The last release, for reference: https://github.com/Gusto/scope/releases/tag/v2026.1.12

Summary

Replaces cargo-dist and cargo-release with a streamlined release workflow:

  • Each push to main merges into a release branch, bumps the version to YYYY.MM.DD.HHmm, tags, and builds
  • Removes ~450 lines of cargo-dist generated workflow code
  • Drops shell installer, Linux packages (.deb/.rpm), and DotSlash generation—just tarballs now
  • Uses cross for Linux targets, native cargo for macOS ARM64

Design Decisions

  • Single merge commit for releases: Version bump happens in the merge commit itself, not a separate commit
  • 0.0.0-dev on main: Main branch always shows development version; release branch carries real versions
  • No GitHub App token: Default GITHUB_TOKEN suffices since we only push to release branch, not main
  • Four targets: aarch64-apple-darwin, x86_64-linux-gnu, x86_64-linux-musl, aarch64-linux-gnu (dropped x86_64-apple-darwin given declining Intel Mac usage)

Setup Required

After merging, create the release branch once:

git checkout main && git checkout -b release && git push -u origin release

Assisted-by: Claude

- Remove cargo-dist and cargo-release dependencies
- Add single workflow that merges main→release, bumps version, builds, releases
- Version format: YYYY.MM.DD.HHmm
- Main branch stays at 0.0.0-dev
- Builds for: aarch64-apple-darwin, x86_64-linux-gnu, x86_64-linux-musl, aarch64-linux-gnu
- Use default GITHUB_TOKEN instead of app token
@kejadlen kejadlen force-pushed the alpha/push-uxkmnsoxlxmy branch from 867b809 to 5ae0ffa Compare January 28, 2026 22:41
@kejadlen kejadlen marked this pull request as ready for review January 28, 2026 22:54
@kejadlen kejadlen merged commit c00e5fc into main Jan 28, 2026
5 checks passed
@kejadlen kejadlen deleted the alpha/push-uxkmnsoxlxmy branch January 28, 2026 22:54
whizzzkid added a commit that referenced this pull request Jan 29, 2026
* main:
  feat(devcontainer): ✨ Devcontainer with Claude-Code Support. (#264)
  ci: Use Gusto self-hosted runners for release workflow (#267)
  Replace cargo-dist with simplified release workflow (#263)

Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
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.

2 participants