Repository navigation
ci: automate release tarball publishing - #856
Conversation
Sashiko reviewCommit 1/1 —
|
|
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>
6ae88cc to
11c0ea8
Compare
|
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:
|
Sashiko review — v2✓ No issues found across 1 commit. |
Summary
Automate the generation and publication of release tarballs on GitHub Releases.
.github/workflows/release.ymlto build stripped release binaries (sashikoandsashiko-cli), package distribution tarballs with SHA-256 checksums, and publish them to GitHub Releases on tag pushes (v*).workflow_dispatchto allow maintainers to backfill release assets for existing tags (such asv.0.9.1).scripts/package-release.shand amake disttarget for reproducible local and automated release packaging.dist/to.gitignore.Verification
make distlocally: builds stripped binaries and packagessashiko-<tag>-<target>.tar.gz(28 MB) andsashiko-<tag>-src.tar.gz(13 MB) along with.sha256checksums.make check-pr RANGE=origin/main..HEADpasses cleanly with Developer Certificate of Origin (S-O-B) andyamllint.