mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 14:01:06 +00:00
Invoke cargo build commands with --locked (#7057)
This commit is contained in:
@@ -21,7 +21,7 @@ build-linux-stable:
|
||||
# Ensure we run the UI tests.
|
||||
RUN_UI_TESTS: 1
|
||||
script:
|
||||
- time cargo build --profile testnet --features pyroscope --verbose --bin polkadot
|
||||
- time cargo build --locked --profile testnet --features pyroscope --verbose --bin polkadot
|
||||
# pack artifacts
|
||||
- mkdir -p ./artifacts
|
||||
- VERSION="${CI_COMMIT_REF_NAME}" # will be tag or branch name
|
||||
@@ -52,8 +52,8 @@ build-test-collators:
|
||||
- .compiler-info
|
||||
- .collect-artifacts
|
||||
script:
|
||||
- time cargo build --profile testnet --verbose -p test-parachain-adder-collator
|
||||
- time cargo build --profile testnet --verbose -p test-parachain-undying-collator
|
||||
- time cargo build --locked --profile testnet --verbose -p test-parachain-adder-collator
|
||||
- time cargo build --locked --profile testnet --verbose -p test-parachain-undying-collator
|
||||
# pack artifacts
|
||||
- mkdir -p ./artifacts
|
||||
- mv ./target/testnet/adder-collator ./artifacts/.
|
||||
@@ -77,7 +77,7 @@ build-malus:
|
||||
- .compiler-info
|
||||
- .collect-artifacts
|
||||
script:
|
||||
- time cargo build --profile testnet --verbose -p polkadot-test-malus
|
||||
- time cargo build --locked --profile testnet --verbose -p polkadot-test-malus
|
||||
# pack artifacts
|
||||
- mkdir -p ./artifacts
|
||||
- mv ./target/testnet/malus ./artifacts/.
|
||||
|
||||
@@ -48,7 +48,7 @@ check-try-runtime:
|
||||
- .compiler-info
|
||||
script:
|
||||
# Check that everything compiles with `try-runtime` feature flag.
|
||||
- cargo check --features try-runtime --all
|
||||
- cargo check --locked --features try-runtime --all
|
||||
|
||||
# More info can be found here: https://github.com/paritytech/polkadot/pull/5865
|
||||
# Works only in PRs with E1 label
|
||||
@@ -68,8 +68,8 @@ check-try-runtime:
|
||||
echo "Found label runtime_migration. Running tests"
|
||||
export RUST_LOG=remote-ext=debug,runtime=debug
|
||||
echo "---------- Running try-runtime for ${NETWORK} ----------"
|
||||
time cargo build --release -p "$NETWORK"-runtime
|
||||
time cargo run --release --features try-runtime try-runtime \
|
||||
time cargo build --locked --release -p "$NETWORK"-runtime
|
||||
time cargo run ---locked -release --features try-runtime try-runtime \
|
||||
--runtime ./target/release/wbuild/"$NETWORK"-runtime/target/wasm32-unknown-unknown/release/"$NETWORK"_runtime.wasm \
|
||||
-lruntime=debug \
|
||||
--chain=${NETWORK}-dev \
|
||||
@@ -118,8 +118,8 @@ check-no-default-features:
|
||||
- .compiler-info
|
||||
script:
|
||||
# Check that polkadot-cli will compile no default features.
|
||||
- pushd ./node/service && cargo check --no-default-features && popd
|
||||
- pushd ./cli && cargo check --no-default-features --features "service" && popd
|
||||
- pushd ./node/service && cargo check --locked --no-default-features && popd
|
||||
- pushd ./cli && cargo check --locked --no-default-features --features "service" && popd
|
||||
- exit 0
|
||||
|
||||
# this is artificial job to run some build and tests using DAG
|
||||
|
||||
@@ -103,4 +103,4 @@ cargo-clippy:
|
||||
- .docker-env
|
||||
- .test-refs
|
||||
script:
|
||||
- SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo clippy --all-targets
|
||||
- SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo clippy --locked --all-targets
|
||||
|
||||
Reference in New Issue
Block a user