Skip to content

release: publish versioned per-platform reld binaries + SHA256SUMS on GitHub Releases (for soldr on-demand fetch) #148

Closed

Description

@zackees

Goal

Publish versioned, per-platform reld binaries on GitHub Releases so downstream tools can download a pinned, checksum-verified linker instead of requiring reld to already be on PATH.

The first consumer is soldr: when a user selects SOLDR_LINKER=reld, soldr will fetch the pinned reld release asset on demand (tracking issue: forge-ci/soldr#3276). Today that is impossible because this repo's releases only contain benchmark evidence (linux-linker-competition-v2, linux-linker-comparators-v1, …) and [workspace.package].version is 0.0.0.

What is needed

1. Real versions

  • Bump [workspace.package].version off 0.0.0 (e.g. 0.1.0) and treat it as the release version.
  • Tags: vX.Y.Z. Keep the existing evidence tags (linux-linker-competition-*) in their own namespace so a consumer querying releases can never confuse an evidence release with a binary release.
  • Mark evidence releases as non-latest (or pre-release) so releases/latest always resolves to a binary release.

2. Release workflow (release.yml)

Triggered by a version bump merged to main (or a vX.Y.Z tag), builds --release reld for each target and uploads to the vX.Y.Z release.

Target triple Archive Notes
x86_64-unknown-linux-gnu .tar.gz native ELF engine
aarch64-unknown-linux-gnu .tar.gz native ELF engine
x86_64-unknown-linux-musl .tar.gz static; lets soldr use one Linux asset on any distro/glibc
x86_64-pc-windows-msvc .zip lld-link bridge
aarch64-pc-windows-msvc .zip lld-link bridge
x86_64-apple-darwin .tar.gz ld64.lld bridge
aarch64-apple-darwin .tar.gz ld64.lld bridge

cross-ship.yml already cross-builds the product on Linux through soldr build --target <triple> (reld#59), so the Windows/macOS legs don't need scarce native runners to build; a native smoke run (reld --version plus one tiny link) should still gate the upload.

3. Asset contract (soldr will depend on this — please keep it stable)

  • Asset name: reld-vX.Y.Z-<target-triple>.<tar.gz|zip>
  • Archive layout: binaries at the archive root (or a single top-level reld-vX.Y.Z-<triple>/ dir): reld[.exe] and reld-link[.exe], plus LICENSE-MIT, LICENSE-APACHE, NOTICE (wild-fork attribution).
  • SHA256SUMS asset on every release: one <sha256> <asset-name> line per archive.
  • reld --version prints reld X.Y.Z (soldr uses the --version output in its link-cache identity, so it must change between releases).
  • Production build: system allocator; no mimalloc-pprof feature (per meta(perf): externalize mimalloc-pprof and optimize the standalone LLVM COFF driver #97).

.tar.gz / .zip are the formats soldr's extractor already supports (crates/soldr-fetch/src/fetch/archive.rs: zip, tar.gz, tar.xz). Please don't use .tar.zst for these assets without coordinating.

4. Bridge dependency is documented

On Windows/macOS reld bridges to lld-link / ld64.lld from the Rust toolchain's rust-lld. Document in the README exactly how reld finds that bridge (sysroot lookup? PATH? env override?) so a downloaded binary outside a rustup install works predictably, or fails with a clear message naming what's missing.

Acceptance criteria

  • A vX.Y.Z release exists with all 7 archives + SHA256SUMS.
  • gh api repos/zackees/reld/releases/latest returns the binary release, not an evidence release.
  • Each archive's reld --version runs on its native platform in the release workflow before upload.
  • The asset naming/layout contract above is written into docs/ (or README "Installing") so changes are visible to consumers.

Judgment calls (edit if you disagree)

  • Target list: included musl + both arm64 variants; dropped windows-gnu (soldr blesses MSVC on Windows). Trim if a leg is costly.
  • Naming: reld-vX.Y.Z-<triple> mirrors the common Rust release convention (and what soldr's known_tools asset matcher already handles), rather than friendly names like linux-x64.
  • Evidence releases stay, just moved out of latest.

Activity

  1. zackees commented on Sep 17, 2026

    @zackees
    CollaboratorAuthor

    Resolved by #149, released as v0.1.0 (all 7 archives + SHA256SUMS, releases/latest confirmed resolving to it, evidence releases flipped to prerelease).

    Two deliberate deviations from the issue text, for the record:

    • macOS legs (x86_64-apple-darwin, aarch64-apple-darwin) are cross-built and format-checked, not natively executed. No GitHub Actions job in this org runs on a macos-* runner (see soldr's ci/canonical-targets.json compatibility_decisions, referencing soldr#3071/soldr#3116), so AC docs: phased implementation plan for GPT-5.6 handoff #3 ("each archive's reld --version runs on its native platform") holds for 5 of 7 archives, not all 7. Windows (both arches) and both Linux/glibc/musl legs do get a native --version smoke gate before upload.
    • reld --version only prints reld X.Y.Z on Linux. On Windows/macOS every invocation — including --version — bridges whole to lld-link/ld64.lld (existing, deliberate architecture predating this issue), so those platforms report the bridged linker's version instead of reld's own. The release archive name and SHA256SUMS entry are the authoritative version identifier there; documented in README.md under "Installing".

    Also skipped the "plus one tiny link" smoke suggestion — every commit reaching a tag has already passed linker-artifacts.yml's full consumer-acceptance link/run gate on main, so a --version-only gate in the release workflow itself was enough to avoid duplicating that coverage.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions