Skip to content

Conversation

@josh-tracey
Copy link
Contributor

This commit introduces a new GitHub Actions workflow in .github/workflows/release.yml.

The workflow is designed to automate the building and deployment of release binaries when a new release is created in the repository.

Key features:

  • Triggers on new release creation (on: release: types: [created]).
  • Sets up build environments for Linux (x86_64, ARM64), macOS (x86_64, ARM64), and Windows (x86_64).
  • Uses a matrix strategy to build for each platform and architecture.
  • Compiles the Rust project using cargo build --release.
  • Packages the compiled binary along with LICENSE and README.md into platform-appropriate archives (.zip for Windows, .tar.gz for Linux/macOS).
  • Artifact names include project name, version (from tag), and target triple.
  • Uploads the packaged archives as assets to the corresponding GitHub Release.
  • Basic error handling is provided by GitHub Actions' default behavior (job fails on script error).

This workflow streamlines the release process by ensuring that binaries for major platforms are automatically built and made available with each new release.

This commit introduces a new GitHub Actions workflow in `.github/workflows/release.yml`.

The workflow is designed to automate the building and deployment of release binaries when a new release is created in the repository.

Key features:
- Triggers on new release creation (`on: release: types: [created]`).
- Sets up build environments for Linux (x86_64, ARM64), macOS (x86_64, ARM64), and Windows (x86_64).
- Uses a matrix strategy to build for each platform and architecture.
- Compiles the Rust project using `cargo build --release`.
- Packages the compiled binary along with LICENSE and README.md into platform-appropriate archives (.zip for Windows, .tar.gz for Linux/macOS).
- Artifact names include project name, version (from tag), and target triple.
- Uploads the packaged archives as assets to the corresponding GitHub Release.
- Basic error handling is provided by GitHub Actions' default behavior (job fails on script error).

This workflow streamlines the release process by ensuring that binaries for major platforms are automatically built and made available with each new release.
@vercel
Copy link

vercel bot commented May 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sailr ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2025 7:44am

@josh-tracey josh-tracey merged commit 223ee6f into main May 25, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants