feat: set up cargo-dist for automated builds and installers#72
Merged
feat: set up cargo-dist for automated builds and installers#72
Conversation
Configures cargo-dist (dist) v0.30.4 for automated release pipeline: - Shell installer (curl | sh) for Linux/macOS - PowerShell installer (irm | iex) for Windows - Homebrew formula generation (tap: alvinreal/homebrew-tap) - Optimized release profile with LTO Build targets: - x86_64-unknown-linux-gnu - x86_64-unknown-linux-musl - aarch64-unknown-linux-gnu - x86_64-apple-darwin (Intel Mac) - aarch64-apple-darwin (Apple Silicon) - x86_64-pc-windows-msvc Generated release.yml workflow triggers on version tags. Added package metadata (description, license, repository, homepage). dist plan verified: produces correct build matrix and artifacts. Fixes #67
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.
Sets up cargo-dist (v0.30.4) for fully automated release builds and distribution.
What This Does
When a version tag (e.g.
v0.2.0) is pushed, the generatedrelease.ymlworkflow will:Build optimized binaries for 6 targets:
x86_64-unknown-linux-gnux86_64-unknown-linux-musl(static, no glibc dependency)aarch64-unknown-linux-gnu(ARM64 Linux)x86_64-apple-darwin(Intel Mac)aarch64-apple-darwin(Apple Silicon)x86_64-pc-windows-msvc(Windows)Create installers:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/alvinreal/morph/releases/latest/download/morph-installer.sh | shirm https://github.com/alvinreal/morph/releases/latest/download/morph-installer.ps1 | iexalvinreal/homebrew-tap)Generate artifacts: tarballs/zips, SHA256 checksums, source archive
Create GitHub Release with changelog
Files Changed
Cargo.toml: Added package metadata (description, license, repository, homepage) +[profile.dist]with LTOdist-workspace.toml: cargo-dist configuration (targets, installers, Homebrew tap).github/workflows/release.yml: Auto-generated release workflowVerification
dist planshows correct build matrix with all 6 targetscargo fmtandcargo clippycleanFixes #67