Skip to content

setup release-plz 2#583

Draft
Firestar99 wants to merge 3 commits into
mainfrom
setup-release2
Draft

setup release-plz 2#583
Firestar99 wants to merge 3 commits into
mainfrom
setup-release2

Conversation

@Firestar99
Copy link
Copy Markdown
Member

@Firestar99 Firestar99 commented Apr 20, 2026

various bug fixes for release-plz after the first release

  • only create one github release for all crates formatted as v{version}, eg. v0.10.0-alpha.1
    • I manually removed the per-crate tags of the first release
  • add a release-dry-run action that cargo publish --dry-run
    • this would fail prior to our alpha.1 release due to us adding a new feature to a crate and another crate depending on it, but as dry-run uses only crates releases, the latter crate would fail to build due to that feature not existing in the crates release
  • update the difftest Cargo.lock on the release PR by checking it out after release-plz creates it and pushing a follow-up cargo update commit (per the release-plz docs), so CI on the release PR runs against a consistent lockfile (relates to Custom action after release-pr updates versions release-plz/release-plz#2805)

The difftest workspace pulls `spirv-std` / `spirv-builder` via path
deps, so its `Cargo.lock` references their versions. release-plz only
bumps the root workspace, so add a follow-up step on the `release-pr`
job that checks out the freshly-created release PR, runs a targeted
`cargo update` against the difftest manifest for the five spirv-*
packages, and pushes the resulting lockfile change back onto the PR
before CI runs against it. Uses the documented "commit files to the
release PR" pattern from release-plz so we don't need a config option
upstream. `RUSTUP_TOOLCHAIN=stable` avoids rust-toolchain.toml
auto-installing the pinned nightly just to refresh a lockfile.
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.

2 participants