diff options
| author | diogo464 <[email protected]> | 2025-07-10 22:20:34 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-07-10 22:20:34 +0100 |
| commit | 0ead2c37efe34278a859edbce40e8bba7bf021fd (patch) | |
| tree | aaf17c0a8bd10b596962ae52f25e8bcb0e62dea8 /Cargo.toml | |
| parent | 3b0721341c46922b5c1c94bdbbf37099424ee5bc (diff) | |
Add GitHub Actions release workflow and build scripts
- Add .github/workflows/release.yml for automated releases on version tags
- Add scripts/build-static.sh for building statically linked binaries
- Add scripts/prepare-release.sh for preparing release artifacts
- Optimize Cargo.toml for smaller binary size (reduced from 4.5MB to 2.9MB)
- Add scripts/README.md with usage documentation
The workflow automatically builds binaries for Linux (musl) and macOS (Intel/ARM)
when a version tag is pushed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -14,3 +14,16 @@ thiserror = "2.0.12" | |||
| 14 | tokio = { version = "1.46.1", features = ["full"] } | 14 | tokio = { version = "1.46.1", features = ["full"] } |
| 15 | tracing = "0.1.41" | 15 | tracing = "0.1.41" |
| 16 | tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } | 16 | tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } |
| 17 | |||
| 18 | [profile.release] | ||
| 19 | # Optimize for size | ||
| 20 | opt-level = "z" # Optimize for size | ||
| 21 | lto = true # Enable Link Time Optimization | ||
| 22 | codegen-units = 1 # Compile crates one after another for better optimizations | ||
| 23 | strip = true # Strip symbols from binary | ||
| 24 | debug = false # Disable debug info | ||
| 25 | |||
| 26 | # Additional size optimizations | ||
| 27 | [profile.release.package."*"] | ||
| 28 | opt-level = "z" | ||
| 29 | strip = "symbols" | ||
