Also make sure releases use --locked

If it somehow gets out of sync, then the release process otherwise wouldn't catch it.
This commit is contained in:
Eric Huss 2023-02-13 07:53:32 -08:00 committed by GitHub
parent a43b5b69ab
commit 958b456873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ then
export "CARGO_TARGET_$(echo $target | tr a-z- A-Z_)_LINKER"=rust-lld
fi
export CARGO_PROFILE_RELEASE_LTO=true
cargo build --bin mdbook --release --target $target
cargo build --locked --bin mdbook --release --target $target
cd target/$target/release
case $1 in
ubuntu*)