Add release process with cross-platform binaries and Docker container#1
Merged
Conversation
- GitHub Actions release workflow triggered by version tags (v*) - Builds binaries for Linux (x86_64, aarch64), macOS (x86_64, aarch64) - Multi-arch Docker image published to GHCR (ghcr.io/ewels/duprust) - CI workflow with test, fmt, and clippy checks on PRs - Multi-stage Dockerfile optimized for rust-htslib static builds Generated by Claude Code
- Add libfontconfig1-dev to apt-get in ci.yml, release.yml, and Dockerfile (required by plotters via yeslogic-fontconfig-sys) - Run cargo fmt on all source files to pass formatting check Generated by Claude Code
- is_multiple_of instead of manual modulo check - Iterator enumerate instead of needless_range_loop - allow too_many_arguments on private draw helper - range contains instead of manual bounds check - std::mem::take instead of drain().collect() Generated by Claude Code
# Conflicts: # src/counting.rs # src/plots.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a complete release process for building and distributing duprust:
.github/workflows/release.yml) — triggered by pushing a version tag (v*).github/workflows/ci.yml) — runs tests, formatting, and clippy on every PR.dockerignore— keeps Docker build context leanRelease Pipeline
Pushing a tag like
v0.1.0triggers a 4-job pipeline:create-releasebuild-binariesdockerpublish-releaseBinary Targets
crossDocker
ghcr.io/ewels/duprust1.2.3,1.2,1,latest)rust:1-bookworm, runtime ondebian:bookworm-slimUsage
CI Checks
Every PR now runs:
cargo build+cargo test --releaseon Ubuntu and macOScargo fmt --checkcargo clippy -- -D warnings