Skip to content

[FEATURE] Binaries publish lane: managed cargo-dist asset builder into the train draft #1783

Open

Description

@gerchowl

Description

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.

Changelog Category

Added

Refs: #1769, #1774

Activity

  1. added
    feature
    area:workspace
    area:workflow
    semver:minor
    on Sep 29, 2026
  2. gerchowl commented on Sep 29, 2026

    @gerchowl
    ContributorAuthor

    Revised after the ADR review on PR #1785 (docs/rfcs/ADR-publish-lanes.md):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowarea:workspacefeaturesemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions