You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Binaries publish lane: managed cargo-dist asset builder into the train draft #1783
Implementation of the prebuilt-binaries channel for the publish-lane spike #1769 (review on #1774). Replace the hand-copied cargo-dist recipe with a managed tag-push workflow that builds into the train's draft Release.
Problem Statement
dist's generated CI undrafts the Release itself under GITHUB_TOKEN. That bypasses promote, and because events from GITHUB_TOKEN start no workflows, release: published never fires. Today each Rust repo copies the recipe from docs/DOWNSTREAM_RELEASE.md. The upstream fix (axodotdev/cargo-dist#2520 / #2521, undraft-release = false) is open, and the maintainers have signalled acceptance.
Proposed Solution
Now:
Managed: a tag-push workflow that runs dist build locally, then globally, uploads into the draft with --clobber, attests its outputs (the seal gates on this), and does nothing when no draft exists (tag-only release candidates).
Seeded:dist-workspace.toml without ci, with the cross-compilation default cargo-zigbuild for Linux and windows-gnu and native macOS and MSVC runners.
Seeded, opt-in: macOS notarization and Windows Azure Trusted Signing (secrets are per repo); a Homebrew tap using an App installation token scoped to the tap repo.
After #2521 ships: managed shrinks to a drift check plus undraft-release = false, and dist's generated CI becomes the seeded part.
Alternatives Considered
GoReleaser (a viable alternative for non-Rust or mixed repos; document it, don't template it); allow-dirty = ["ci"] (rejected: disables drift protection globally).
Additional Context
Pitfalls: macos-14 runners are Apple Silicon only; installer URLs 404 until promote; bare Mach-O binaries can't be stapled.
Impact
Rust CLI repos get binaries, installers and optionally Homebrew by declaring the channel.
Activity
gerchowl commentedon Sep 29, 2026
Revised after the ADR review on PR #1785 (
docs/rfcs/ADR-publish-lanes.md):binarieschannel with a matrix hook, rather than a parallel upload workflow. Now blocked by [FEATURE] Release asset builder: managed tag-push build + upload + attest into the train draft #1786.github-attestations).