How to build and publish multi-platform Rust binaries via Github actions
15 hours ago
- Automated CI/CD pipeline for Textpod triggered on GitHub release creation.
- Builds Linux and Windows binaries using cross-compilation on ubuntu-latest.
- Builds macOS binaries for both Intel (x86_64) and ARM (aarch64) on macos-latest.
- Generates SHA256 checksums for all binary archives and attaches them to the release.
- Publishes the crate to crates.io using the katyo/publish-crates action, dependent on successful builds.
- Builds and pushes Docker images for amd64 and arm64 platforms to Docker Hub using docker/build-push-action.
- Docker images based on rust:alpine are roughly 10 MB in size.
- Pipeline runs in the background after release creation, populating release page with files.