diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0adaa0c0..3ccae382 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -268,7 +268,13 @@ check-try-runtime: needs: [clippy] variables: SKIP_WASM_BUILD: "1" - timeout: 120m + CARGO_HOME: /root/.cargo + before_script: + - export CACHE_KEY="$(cat Cargo.lock rust-toolchain.toml | md5sum | cut -c1-12)" + - export CARGO_TARGET_DIR="/cache/cargo-target/${CACHE_KEY}/test-release" + - mkdir -p "$CARGO_TARGET_DIR" + - echo "CARGO_TARGET_DIR=$CARGO_TARGET_DIR" + timeout: 180m script: - git config --global --add safe.directory '*' # try-runtime,experimental is a superset — covers the separate try-runtime and