From 91b4e1419b77a5187db1fc943e3df09fead1c648 Mon Sep 17 00:00:00 2001 From: Mira Ressel <mira@parity.io> Date: Wed, 12 Apr 2023 12:06:05 +0200 Subject: [PATCH] Invoke cargo build commands with `--locked` (#2444) --- cumulus/scripts/ci/gitlab/pipeline/build.yml | 2 +- cumulus/scripts/ci/gitlab/pipeline/test.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cumulus/scripts/ci/gitlab/pipeline/build.yml b/cumulus/scripts/ci/gitlab/pipeline/build.yml index e512c9e7f74..e4678727e9b 100644 --- a/cumulus/scripts/ci/gitlab/pipeline/build.yml +++ b/cumulus/scripts/ci/gitlab/pipeline/build.yml @@ -65,7 +65,7 @@ build-test-parachain: echo "_____Running cargo check for ${directory} ______"; cd ${directory}; pwd; - SKIP_WASM_BUILD=1 cargo check; + SKIP_WASM_BUILD=1 cargo check --locked; cd ..; done diff --git a/cumulus/scripts/ci/gitlab/pipeline/test.yml b/cumulus/scripts/ci/gitlab/pipeline/test.yml index 5bafe970fbc..0ef51ae2e6d 100644 --- a/cumulus/scripts/ci/gitlab/pipeline/test.yml +++ b/cumulus/scripts/ci/gitlab/pipeline/test.yml @@ -56,9 +56,9 @@ check-runtime-benchmarks: - .common-refs script: # Check that the node will compile with `runtime-benchmarks` feature flag. - - time cargo check --all --features runtime-benchmarks + - time cargo check --locked --all --features runtime-benchmarks # Check that parachain-template will compile with `runtime-benchmarks` feature flag. - - time cargo check -p parachain-template-node --features runtime-benchmarks + - time cargo check --locked -p parachain-template-node --features runtime-benchmarks cargo-check-try-runtime: stage: test @@ -71,9 +71,9 @@ cargo-check-try-runtime: artifacts: false script: # Check that the node will compile with `try-runtime` feature flag. - - time cargo check --all --features try-runtime + - time cargo check --locked --all --features try-runtime # Check that parachain-template will compile with `try-runtime` feature flag. - - time cargo check -p parachain-template-node --features try-runtime + - time cargo check --locked -p parachain-template-node --features try-runtime check-rustdoc: stage: test -- GitLab