Repository navigation
release: publish versioned per-platform reld binaries on GitHub Releases - #149
Merged
Merged
Conversation
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]>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/release.yml, triggered by avX.Y.Ztag push tomain, that builds all 7 target archives from the issue's table (linux gnu/musl x64+arm64, windows msvc x64+arm64, macos x64+arm64), smoke-testsreld --versionon every platform with a real GitHub-hosted runner, packagesreld+reld-link+LICENSE-MIT/LICENSE-APACHE/NOTICEvia the newci/package_release.py, generatesSHA256SUMS, and publishes the GitHub Release aslatest.[workspace.package].versionoff the0.0.0placeholder to0.1.0, and teachesbuild.rs's git-tag version detection to accept thevX.Y.Ztag convention (it previously only matched a bareX.Y.Ztag), soreld --versionreports the clean release version on Linux once built at a release tag.reld --versionbehavior split between platforms, and how the Windows/macOSlldbridge discovers its linker, in a new README "Installing" section.pull_request-triggered dry run of the same pipeline (paths-scoped torelease.yml/package_release.py) so it's validated in CI before being relied on, mirroringcross-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)
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 today (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") is met for 5 of 7 archives, not all 7.reld --versiononly printsreld X.Y.Zon Linux. On Windows/macOS every invocation — including--version— bridges whole tolld-link/ld64.lld(existing, deliberate architecture; seecrates/reld/src/main.rs::run()andcross-ship.yml's own comments), so those platforms report the bridged linker's version instead. The release archive name andSHA256SUMSentry remain the authoritative version identifier there. Left the.comment/--versionformat (Reld X.Y.Z (compatible with GNU linkers)) unchanged rather than reformatting to barereld X.Y.Z, since nothing pins the literal string but changing it is unrelated scope.reld --version, to keep the release workflow's own surface area bounded — every commit that reaches a tag has already passedlinker-artifacts.yml's full consumer-acceptance link/run gate onmain.Test plan
cargo build,cargo clippy -D warnings,cargo fmt --check, andcargo test -p reld-core(incl.tidy_tests::check_toml_format) pass locally.ci/package_release.pymanually exercised for both.tar.gzand.zipoutput; verified archive layout and executable bits.release.yml'spull_requestdry run is green on this PR (build/smoke/package for all 7 targets, no publish).v0.1.0, confirm the real release run publishes all 7 archives +SHA256SUMS, andgh api repos/zackees/reld/releases/latestresolves to it.Resolves #148.
🤖 Generated with Claude Code