Skip to content

Commit a69f0ef

Browse files
authored
Merge pull request #638 from eval-exec/exec/cargo-build-locked
CI: add `--locked` for cargo build
2 parents 2cc29f9 + aada839 commit a69f0ef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: |
9696
export GIT_TAG_NAME=` echo ${{ github.ref }} | awk -F '/' '{print $4}' `
9797
export TOP_DIR=$(pwd)
98-
PKG_CONFIG_ALLOW_CROSS=1 CC=gcc CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc cargo build --target=aarch64-unknown-linux-gnu --release
98+
PKG_CONFIG_ALLOW_CROSS=1 CC=gcc CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc cargo build --locked --target=aarch64-unknown-linux-gnu --release
9999
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output devtools/ci/signer.asc devtools/ci/signer.asc.gpg
100100
gpg --import devtools/ci/signer.asc
101101
devtools/ci/package.sh target/aarch64-unknown-linux-gnu/release/ckb-cli

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ integration:
2020
bash devtools/ci/integration.sh v0.200.0
2121

2222
prod: ## Build binary with release profile.
23-
cargo build --release
23+
cargo build --locked --release
2424

2525
security-audit: ## Use cargo-deny to audit Cargo.lock for crates with security vulnerabilities.
2626
cargo deny check --hide-inclusion-graph --show-stats advisories sources -Wunmaintained

devtools/ci/integration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fi
4646
cd $CKB_CLI_DIR
4747

4848
# Build keystore_no_password plugin
49-
cd plugin-protocol && cargo build --example keystore_no_password && cd ..
49+
cd plugin-protocol && cargo build --locked --example keystore_no_password && cd ..
5050

5151
rm -rf test/target && ln -snf "${CKB_CLI_DIR}/target" test/target
5252
export RUST_LOG=ckb_cli=info,cli_test=info

0 commit comments

Comments
 (0)