Cargo Release Workflow.
Build Rust binaries with Cargo and publish them using GitHub Releases.
Demonstrate a GitHub Build and Release workflow for Cargo projects.
Uses basic cargo init
for example project.
See release.yml for workflow requirements.
Triggered by a git push
of a new tag using Semver 2.0 (e.g., v1.0.0
).
Runs cargo test
in parallel with Build
step.
If a test fails, this step will prevent a release.
Workflow
Runs cargo build --release
in parallel with Test
step.
Builds binary artifacts for Linux, MacOS, and Windows targets.
If a build fails, this step will prevent a release.
Creates release using version tag and binary artifacts from Build
step.