diff --git a/scripts/ci/gitlab/pipeline/build.yml b/scripts/ci/gitlab/pipeline/build.yml index 6d7c3cc35df8..8367ec3bc7d6 100644 --- a/scripts/ci/gitlab/pipeline/build.yml +++ b/scripts/ci/gitlab/pipeline/build.yml @@ -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/. diff --git a/scripts/ci/gitlab/pipeline/check.yml b/scripts/ci/gitlab/pipeline/check.yml index 66338ba21c84..7a56777b09f1 100644 --- a/scripts/ci/gitlab/pipeline/check.yml +++ b/scripts/ci/gitlab/pipeline/check.yml @@ -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 diff --git a/scripts/ci/gitlab/pipeline/test.yml b/scripts/ci/gitlab/pipeline/test.yml index 6420216111ce..d66ede4e03ef 100644 --- a/scripts/ci/gitlab/pipeline/test.yml +++ b/scripts/ci/gitlab/pipeline/test.yml @@ -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