Skip to content

release: publish versioned per-platform reld binaries on GitHub Releases - #149

Merged
zackees merged 3 commits into
mainfrom
release-148-github-releases
Sep 17, 2026
Merged

zackees merged 3 commits into
mainfrom
release-148-github-releases

Conversation

@zackees

@zackees zackees commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds .github/workflows/release.yml, triggered by a vX.Y.Z tag push to main, that builds all 7 target archives from the issue's table (linux gnu/musl x64+arm64, windows msvc x64+arm64, macos x64+arm64), smoke-tests reld --version on every platform with a real GitHub-hosted runner, packages reld + reld-link + LICENSE-MIT/LICENSE-APACHE/NOTICE via the new ci/package_release.py, generates SHA256SUMS, and publishes the GitHub Release as latest.
  • Bumps [workspace.package].version off the 0.0.0 placeholder to 0.1.0, and teaches build.rs's git-tag version detection to accept the vX.Y.Z tag convention (it previously only matched a bare X.Y.Z tag), so reld --version reports the clean release version on Linux once built at a release tag.
  • Documents the asset naming/layout contract, the reld --version behavior split between platforms, and how the Windows/macOS lld bridge discovers its linker, in a new README "Installing" section.
  • Adds a pull_request-triggered dry run of the same pipeline (paths-scoped to release.yml/package_release.py) so it's validated in CI before being relied on, mirroring cross-ship.yml's existing pattern for its own draft cross-build legs.

Deviations from the issue's judgment calls (documented here and being commented on #148)

  • 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 today (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") is met for 5 of 7 archives, not all 7.
  • 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; see crates/reld/src/main.rs::run() and cross-ship.yml's own comments), so those platforms report the bridged linker's version instead. The release archive name and SHA256SUMS entry remain the authoritative version identifier there. Left the .comment/--version format (Reld X.Y.Z (compatible with GNU linkers)) unchanged rather than reformatting to bare reld X.Y.Z, since nothing pins the literal string but changing it is unrelated scope.
  • No "tiny link" smoke beyond reld --version, to keep the release workflow's own surface area bounded — every commit that reaches a tag has already passed linker-artifacts.yml's full consumer-acceptance link/run gate on main.

Test plan

  • cargo build, cargo clippy -D warnings, cargo fmt --check, and cargo test -p reld-core (incl. tidy_tests::check_toml_format) pass locally.
  • ci/package_release.py manually exercised for both .tar.gz and .zip output; verified archive layout and executable bits.
  • release.yml's pull_request dry run is green on this PR (build/smoke/package for all 7 targets, no publish).
  • After merge: push tag v0.1.0, confirm the real release run publishes all 7 archives + SHA256SUMS, and gh api repos/zackees/reld/releases/latest resolves to it.

Resolves #148.

🤖 Generated with Claude Code

zackees and others added 3 commits September 16, 2026 20:22
Adds .github/workflows/release.yml, triggered by a vX.Y.Z tag push, which
builds all 7 target archives (linux gnu/musl x64+arm64, windows msvc
x64+arm64, macos x64+arm64), smoke-tests reld --version on every platform
that has a real runner, packages reld + reld-link + license/attribution
files via ci/package_release.py, generates SHA256SUMS, and publishes the
GitHub Release as latest.

Bumps [workspace.package].version off the 0.0.0 placeholder to 0.1.0 and
teaches build.rs's git-tag version detection to accept the vX.Y.Z tag
convention, so `reld --version` reports the real release version on Linux.

Windows and macOS bridge every invocation (including --version) to the
underlying lld tool, so their --version output is not reld's own; this is
documented in README.md rather than worked around. macOS legs are
cross-built and format-checked but not natively executed, since no GitHub
Actions job in this org runs on a macos-* runner (soldr#3071, soldr#3116).

Resolves #148.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Adds a pull_request trigger (paths-scoped to release.yml and
ci/package_release.py) so the build/smoke/package path runs and is visible
in CI before relying on it, mirroring cross-ship.yml's own validation
pattern for its DRAFT cross-build legs.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
check_dependencies.py pins the exact resolved-crate strings, including
reld's own internal path-crates. Bumping [workspace.package].version off
0.0.0 changed those seven strings; no external dependency was added.

Approved by the repo owner (Zach Vorhies) in-session, since the baseline
update policy requires explicit developer sign-off.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@zackees
zackees merged commit 92dc9cd into main Sep 17, 2026
28 checks passed
@zackees
zackees deleted the release-148-github-releases branch September 17, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant