https://github.com/gregl83/cargo-release-workflow
GitHub Cargo Release Workflow. Build Rust Binaries with Cargo and attach to Release.
https://github.com/gregl83/cargo-release-workflow
actions cargo github-releases release targets workflow
Last synced: about 1 month ago
JSON representation
GitHub Cargo Release Workflow. Build Rust Binaries with Cargo and attach to Release.
- Host: GitHub
- URL: https://github.com/gregl83/cargo-release-workflow
- Owner: gregl83
- License: mit
- Created: 2023-06-15T21:39:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-24T23:52:13.000Z (almost 3 years ago)
- Last Synced: 2026-03-03T12:32:39.566Z (3 months ago)
- Topics: actions, cargo, github-releases, release, targets, workflow
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://github.com/gregl83/cargo-release-workflow/blob/master/LICENSE)
# cargo-release-workflow
Cargo Release Workflow.
Build Rust binaries with Cargo and publish them using GitHub Releases.
## Purpose
Demonstrate a GitHub Build and Release workflow for Cargo projects.
## Overview
Uses basic `cargo init` for example project.
See [release.yml](.github/workflows/release.yml) for workflow requirements.
## Workflow Steps
Triggered by a `git push` of a new tag using Semver 2.0 (e.g., `v1.0.0`).
### 1. Test
Runs `cargo test` in parallel with `Build` step.
*If a test fails, this step will prevent a release.*
### 2. Build
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.*
### 3. Release
Creates release using version tag and binary artifacts from `Build` step.
## License
[MIT](LICENSE)