diff --git a/substrate/scripts/ci/gitlab/pipeline/build.yml b/substrate/scripts/ci/gitlab/pipeline/build.yml index 47d8b2bc4c..e6269c4e39 100644 --- a/substrate/scripts/ci/gitlab/pipeline/build.yml +++ b/substrate/scripts/ci/gitlab/pipeline/build.yml @@ -52,7 +52,7 @@ build-linux-substrate: - .build-refs variables: # this variable gets overriden by "rusty-cachier environment inject", use the value as default - CARGO_TARGET_DIR: "./target" + CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target" needs: - job: test-linux-stable artifacts: false @@ -84,7 +84,7 @@ build-linux-substrate: - .build-refs variables: # this variable gets overriden by "rusty-cachier environment inject", use the value as default - CARGO_TARGET_DIR: "./target" + CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target" needs: - job: cargo-check-subkey artifacts: false @@ -125,6 +125,7 @@ build-subkey-macos: tee ./artifacts/subkey/VERSION; - sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256 - cp -r ./scripts/ci/docker/subkey.Dockerfile ./artifacts/subkey/ + after_script: [""] tags: - osx @@ -138,7 +139,7 @@ build-rustdoc: DOC_INDEX_PAGE: "sc_service/index.html" # default redirected page RUSTY_CACHIER_TOOLCHAIN: nightly # this variable gets overriden by "rusty-cachier environment inject", use the value as default - CARGO_TARGET_DIR: "./target" + CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target" artifacts: name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc" when: on_success diff --git a/substrate/scripts/ci/gitlab/pipeline/test.yml b/substrate/scripts/ci/gitlab/pipeline/test.yml index 36f920ba27..8ec16ab683 100644 --- a/substrate/scripts/ci/gitlab/pipeline/test.yml +++ b/substrate/scripts/ci/gitlab/pipeline/test.yml @@ -181,7 +181,7 @@ test-deterministic-wasm: variables: WASM_BUILD_NO_COLOR: 1 # this variable gets overriden by "rusty-cachier environment inject", use the value as default - CARGO_TARGET_DIR: "./target" + CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target" script: - rusty-cachier snapshot create # build runtime