Prefer using --locked

This is to ensure that binaries built in this way are built reproducibly.
This commit is contained in:
Sven-Hendrik Haase 2019-10-22 10:18:43 +02:00 committed by Félix Saparelli
parent 0d4a2270ec
commit 7eafb48aa8
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ debug: src/* Cargo.toml
@cargo build
release: src/* Cargo.toml
@cargo build --release
@cargo build --release --locked
clean:
@cargo clean

View File

@ -24,7 +24,7 @@ test_script:
before_deploy:
# Generate artifacts for release
- cargo build --release
- cargo build --release --locked
- mkdir staging
- copy target\release\watchexec.exe staging
- copy LICENSE staging\LICENSE.txt

View File

@ -2,7 +2,7 @@
# Build script shamelessly stolen from ripgrep :)
cargo build --target $TARGET --release
cargo build --target $TARGET --release --locked
build_dir=$(mktemp -d 2>/dev/null || mktemp -d -t tmp)
out_dir=$(pwd)