Repository navigation
Description
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].versionoff0.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) soreleases/latestalways 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]andreld-link[.exe], plusLICENSE-MIT,LICENSE-APACHE,NOTICE(wild-fork attribution). SHA256SUMSasset on every release: one<sha256> <asset-name>line per archive.reld --versionprintsreld X.Y.Z(soldr uses the--versionoutput in its link-cache identity, so it must change between releases).- Production build: system allocator; no
mimalloc-pproffeature (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.Zrelease exists with all 7 archives +SHA256SUMS. -
gh api repos/zackees/reld/releases/latestreturns the binary release, not an evidence release. - Each archive's
reld --versionruns 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'sknown_toolsasset matcher already handles), rather than friendly names likelinux-x64. - Evidence releases stay, just moved out of
latest.
Activity
zackees commentedon Sep 17, 2026
Resolved by #149, released as v0.1.0 (all 7 archives +
SHA256SUMS,releases/latestconfirmed resolving to it, evidence releases flipped to prerelease).Two deliberate deviations from the issue text, for the record:
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 amacos-*runner (seesoldr'sci/canonical-targets.jsoncompatibility_decisions, referencingsoldr#3071/soldr#3116), so AC docs: phased implementation plan for GPT-5.6 handoff #3 ("each archive'sreld --versionruns 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--versionsmoke gate before upload.reld --versiononly printsreld X.Y.Zon Linux. On Windows/macOS every invocation — including--version— bridges whole tolld-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 andSHA256SUMSentry 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 onmain, so a--version-only gate in the release workflow itself was enough to avoid duplicating that coverage.