release: regenerate Cargo.lock in CI before locked build to include target-specific deps

This commit is contained in:
James Peter
2025-08-23 18:22:01 +10:00
parent cc7f7d1315
commit da80a255a0
+7
View File
@@ -189,6 +189,13 @@ jobs:
' .workspace-crate-names Cargo.lock > Cargo.lock.tmp && mv Cargo.lock.tmp Cargo.lock
fi
rm -f .workspace-crate-names
# Ensure Cargo.lock is regenerated for this runner's target so that
# subsequent `cargo build --locked` does not fail due to missing
# target-specific dependencies. This does not publish changes; it only
# updates the lockfile in the workspace checkout for this job.
echo "🔒 Regenerating Cargo.lock for current runner target"
cargo generate-lockfile
shell: bash
- name: Build binaries