mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
release: regenerate Cargo.lock in CI before locked build to include target-specific deps
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user