-
Notifications
You must be signed in to change notification settings - Fork 0
ci: switch to push-to-main semantic-release pipeline #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6a77b02
ci: wire push-to-main release pipeline with release-plz + tap auto-bump
altaywtf b66c8bc
ci: switch from release-plz to semantic-release (uinaf canonical)
altaywtf dfaa0ac
ci: empty commit to retrigger workflows
altaywtf 4278e44
ci: move concurrency to job-level so release can't be cancelled mid-f…
altaywtf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "branches": ["main"], | ||
| "tagFormat": "v${version}", | ||
| "plugins": [ | ||
| [ | ||
| "@semantic-release/commit-analyzer", | ||
| { | ||
| "preset": "conventionalcommits" | ||
| } | ||
| ], | ||
| [ | ||
| "@semantic-release/release-notes-generator", | ||
| { | ||
| "preset": "conventionalcommits" | ||
| } | ||
| ], | ||
| [ | ||
| "@semantic-release/exec", | ||
| { | ||
| "prepareCmd": "scripts/release-prepare.sh ${nextRelease.version}" | ||
| } | ||
| ], | ||
| [ | ||
| "@semantic-release/git", | ||
| { | ||
| "assets": ["Cargo.toml", "Cargo.lock"], | ||
| "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
| } | ||
| ], | ||
| "@semantic-release/github" | ||
| ] | ||
| } |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/usr/bin/env bash | ||
| # Bumps the version in Cargo.toml + Cargo.lock to the version semantic-release | ||
| # computed for the upcoming release. Invoked by @semantic-release/exec via | ||
| # `prepareCmd` in .releaserc.json. | ||
| # | ||
| # Runs in CI only — you should not need to run this locally. | ||
| set -euo pipefail | ||
|
|
||
| if [ "$#" -ne 1 ]; then | ||
| echo "usage: $0 <version>" >&2 | ||
| exit 2 | ||
| fi | ||
|
|
||
| version="$1" | ||
|
|
||
| # Bump only the [package] version line, not any dependency version specs. | ||
| # awk replaces the first matching `^version = ` line and leaves the rest of | ||
| # the file alone; this is portable across BSD awk (macOS) and GNU awk. | ||
| tmp="$(mktemp)" | ||
| awk -v v="$version" ' | ||
| /^version = / && !done { print "version = \"" v "\""; done=1; next } | ||
| { print } | ||
| ' Cargo.toml > "$tmp" | ||
| mv "$tmp" Cargo.toml | ||
|
|
||
| # Refresh Cargo.lock so the local-crate entry matches the new version. | ||
| # `cargo check` updates Cargo.lock when Cargo.toml's version changes. | ||
| cargo check --quiet | ||
|
|
||
| echo "Bumped Cargo.toml + Cargo.lock to version $version" |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-compile targets installed on overridden toolchain
High Severity
dtolnay/rust-toolchain@stableinstalls cross-compile targets (aarch64-apple-darwin,x86_64-apple-darwin) on thestabletoolchain viarustup default, butrust-toolchain.toml(withchannel = "1.93") takes precedence per rustup's override order. Whencargo build --target x86_64-apple-darwinruns, it uses the1.93toolchain, which doesn't have that target installed. On ARM64macos-latestrunners, theaarch64build would succeed (host target), but thex86_64cross-compile build would fail. By that point, semantic-release has already created the tag and GitHub Release, leaving a half-published release with no binary assets.Additional Locations (1)
.github/workflows/ci.yml#L113-L115Reviewed by Cursor Bugbot for commit 4278e44. Configure here.