Skip to content

ci: automate release tarball publishing - #856

Merged
rgushchin merged 1 commit into
sashiko-dev:mainfrom
sweettea:feat/release-workflow
Nov 11, 2026
Merged

rgushchin merged 1 commit into
sashiko-dev:mainfrom
sweettea:feat/release-workflow

Conversation

@sweettea

@sweettea sweettea commented Nov 9, 2026

Copy link
Copy Markdown

Summary

Automate the generation and publication of release tarballs on GitHub Releases.

  • Add .github/workflows/release.yml to build stripped release binaries (sashiko and sashiko-cli), package distribution tarballs with SHA-256 checksums, and publish them to GitHub Releases on tag pushes (v*).
  • Support manual workflow_dispatch to allow maintainers to backfill release assets for existing tags (such as v.0.9.1).
  • Add scripts/package-release.sh and a make dist target for reproducible local and automated release packaging.
  • Add dist/ to .gitignore.

Verification

  • Verified make dist locally: builds stripped binaries and packages sashiko-<tag>-<target>.tar.gz (28 MB) and sashiko-<tag>-src.tar.gz (13 MB) along with .sha256 checksums.
  • Verified make check-pr RANGE=origin/main..HEAD passes cleanly with Developer Certificate of Origin (S-O-B) and yamllint.

@sashiko-bot

sashiko-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown

Sashiko review

Commit 1/1 — 6ae88cc0 ci: automate release tarball publishing

  • [MEDIUM] .github/workflows/release.yml: jobs.release checks out the target
    tag ref in the Checkout Code step and then runs ./scripts/package-release.sh
    from the working tree. When triggered via workflow_dispatch to backfill
    assets for an existing tag that predates this commit (such as v.0.9.1), the
    checked-out historical tree lacks scripts/package-release.sh and the step
    fails with No such file or directory.

  • [MEDIUM] scripts/package-release.sh: package-release.sh reads an optional
    target triple from $2 into TARGET and names the tarball
    sashiko-${TAG}-${TARGET}.tar.gz, but invokes cargo build without --target
    "${TARGET}" and copies binaries from target/release instead of
    target/${TARGET}/release. Passing a non-host target in $2 packages host
    binaries inside an archive labeled for the requested target. Pass --target
    "${TARGET}" to cargo build and read from target/${TARGET}/release, or drop
    the $2 argument if only host builds are supported.

Full review and stage logs on sashiko.sashiko.dev

@rgushchin

Copy link
Copy Markdown
Member

Can you, please, describe the use case in more details? Thanks

Add a release workflow to build stripped release binaries, package
source and binary tarballs with SHA-256 checksums, and publish them
to GitHub Releases on tag pushes (matching v*). Support manual
workflow dispatch to backfill release assets for existing tags
such as v.0.9.1.

Provide scripts/package-release.sh and a make dist target for local
and automated release packaging, and ignore dist/ in git.

Signed-off-by: Sweet Tea Dorminy <sweettea@google.com>
@sweettea
sweettea force-pushed the feat/release-workflow branch from 6ae88cc to 11c0ea8 Compare November 11, 2026 21:00
@sweettea

Copy link
Copy Markdown
Author

Hi Roman:

The primary use case is so that downstream users have a lower barrier to entry.

Downstream packaging (which is what I would like to do) needs pre-built release binaries and checksums rather than having to vendor the many transitive Rust crates and build from source inside hermetic packaging pipelines. GitHub's autogenerated tag zipballs only contain source code, so they don't solve the packaging or installation need.

By producing stripped release binaries and tarballs here upstream, we provide a much lower barrier to packaging and installing Sashiko on developer machines. Developers can run reviews with a quick download rather than setting up Rust 1.93+ and compiling ~250 crates locally. I think it helps with uniformity of results and makes it much easier to adopt widely.

I've also pushed an update addressing the two edge cases sashiko-bot flagged:

  1. When backfilling historical release tags via workflow_dispatch, the packaging script is checked out from the workflow ref if it isn't present in the historical commit.
  2. In scripts/package-release.sh, --target is now passed directly to cargo build and binaries are staged from target/${TARGET}/release.

@sashiko-bot

sashiko-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

Sashiko review — v2

✓ No issues found across 1 commit.

Full review log on sashiko.sashiko.dev

@rgushchin
rgushchin merged commit 9e86455 into sashiko-dev:main Nov 11, 2026
1 check passed
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