Skip to content

fix(release): build binaries from the bumped version - #26

Merged
urmzd merged 1 commit into
mainfrom
fix/release-binary-version
Oct 27, 2026
Merged

urmzd merged 1 commit into
mainfrom
fix/release-binary-version

Conversation

@urmzd

@urmzd urmzd commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Problem

Release binaries are compiled from the pushed commit, before sr bumps the version in the release job, so every release reports the previous version. Observed: v0.15.2 binary reports 0.15.1; v0.15.1 reports 0.15.0.

Fix

Follows the plan → prepare → release shape documented in urmzd/sr@v9 (and used by sr itself):

  • new prepare job runs urmzd/sr@v9 with mode: prepare and uploads the bumped Cargo.toml / Cargo.lock files
  • build jobs download those manifests before cargo build
  • builds only run when prepare reports a bump; the release job is unchanged

Verified locally: sr prepare on agentspec at 58f4146 bumped Cargo.toml, Cargo.lock and crate manifests to 0.15.2, exit 0.

Test plan

  • Workflow YAML parses; job graph checked (ci → prepare → build → release)
  • Merging this fix: commit cuts a patch release; confirm the published aarch64-apple-darwin binary reports the new tag

Release binaries were compiled from the pushed commit, before sr bumped
the version, so each release reported the previous version (and
self-update kept re-downloading the same release).

Add a prepare job that runs sr in prepare mode and uploads the bumped
manifests; the build jobs apply them before compiling. Builds now only
run when there is something to release.
@urmzd
urmzd merged commit 4cd04d5 into main Oct 27, 2026
6 checks passed
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.

1 participant