Releases are cut by hand and built by cargo-dist.
release-plz is not used (removed in 0.11.2).
-
On
senpai, make sure CI is green (cargo fmt --check,cargo clippy --locked --all-targets -- -D warnings,cargo test --locked). -
Bump
versioninCargo.toml, runcargo buildsoCargo.lockfollows, and add a## [X.Y.Z] - YYYY-MM-DDsection toCHANGELOG.md(cargo-dist uses it for the GitHub Release notes). -
Commit, then tag and push:
git tag -a vX.Y.Z -m "vX.Y.Z" git push origin senpai vX.Y.Z -
The
Releaseworkflow (.github/workflows/release.yml) buildsx86_64-unknown-linux-gnu, the shell installer and checksums, and creates the GitHub Release. -
The same tag triggers
Docker image(.github/workflows/docker.yml), which buildsamd64andarm64natively and pushes the multi-archghcr.io/ergo35/lyra:X.Y.Z,:X.Yand:latest. The first time, make the package public under the repository's Packages settings sodocker compose pullworks without logging in.To refresh the pinned
yt-dlp/denoin the image, bump their version and SHA-256ARGs inDockerfile(checksums from each release'sSHA2-256SUMS/.sha256sumfiles).yt-dlpalso updates itself on start.
release.yml is generated. Edit [workspace.metadata.dist] in Cargo.toml
and run dist generate; do not hand-edit the workflow. To check the plan
locally: dist plan.
If the Release run sits in "queued" for a long time, a runner label in
release.yml is probably retired (this is what stalled v0.11.0 and v0.11.1
on ubuntu-20.04); regenerate with a current cargo-dist-version.
cargo publish ignores [patch.crates-io], so a build of Lyra from crates.io
uses upstream serenity 0.12.5 (with tokio-tungstenite 0.21), not the fork;
only GitHub/cargo-dist builds from this repository get the patched dependency.