Repository navigation
build: harden CI and manifest for Rust 1.100 - #408
Merged
Merged
Conversation
softprops/action-gh-release skips unmatched files globs by default, so a release can be published without one of its assets. Set fail_on_unmatched_files so the release job fails instead.
Cargo 1.100 warns that package.homepage is redundant when it equals package.repository.
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.
Why
Rust/Cargo 1.100.0 became GitHub's stable toolchain on 2026-11-09. In passless it caused a release to be published without one of its assets (
softprops/action-gh-releasesilently skips unmatchedfilesglobs unlessfail_on_unmatched_files: trueis set) and new Cargo manifest warnings. This applies the same hardening here.Changes
build: fail the release when an asset is missing: addfail_on_unmatched_files: trueto thesoftprops/action-gh-release@v3step. The input is available in v2 and v3, so the action version is unchanged.build: drop package.homepage redundant with repository: Cargo 1.100 warnspackage.homepage is redundant with package.repositorybecause both are the same URL. Nothing else in the repo (Makefile,.ci, workflows) readshomepage.Release files on every matrix leg
All three listed files are produced on both matrix legs (
aarch64-apple-darwinon macos-15,x86_64-unknown-linux-gnuon ubuntu-22.04) by themake releasestep (cargo vendor+tarforvendor.tar.gz, the${PKG_BASE_NAME}.tar.gzarchive) and theGenerate SHA256 hashstep (tags only,shasumon macOS andsha256sumon Linux, before the publish step), so the stricter setting should not break a correct release.Verification
In a clean worktree,
cargo +1.100.0andcargo +1.99.1:fmt --all -- --check,clippy --locked --all-targets --all-features -- -D warnings,test --lockedall pass. Thehomepagewarning is gone on 1.100.0.cargo +1.100.0 checkreports no warnings after the change. The integration tests intests/integration.rs(assert_cmd,cargo_bin) also pass on 1.100.0; the repo has nocurrent_exe()use.