CI: fix build-subkey-macos build job (#11573)

* CI: fix `build-subkey-macos` build job

* CI: use full path for the `CARGO_TARGET_DIR` default value
This commit is contained in:
Vlad
2022-06-02 11:48:12 +03:00
committed by GitHub
parent 7d8477b48d
commit a084dd684f
2 changed files with 5 additions and 4 deletions
@@ -52,7 +52,7 @@ build-linux-substrate:
- .build-refs - .build-refs
variables: variables:
# this variable gets overriden by "rusty-cachier environment inject", use the value as default # 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: needs:
- job: test-linux-stable - job: test-linux-stable
artifacts: false artifacts: false
@@ -84,7 +84,7 @@ build-linux-substrate:
- .build-refs - .build-refs
variables: variables:
# this variable gets overriden by "rusty-cachier environment inject", use the value as default # 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: needs:
- job: cargo-check-subkey - job: cargo-check-subkey
artifacts: false artifacts: false
@@ -125,6 +125,7 @@ build-subkey-macos:
tee ./artifacts/subkey/VERSION; tee ./artifacts/subkey/VERSION;
- sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256 - sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256
- cp -r ./scripts/ci/docker/subkey.Dockerfile ./artifacts/subkey/ - cp -r ./scripts/ci/docker/subkey.Dockerfile ./artifacts/subkey/
after_script: [""]
tags: tags:
- osx - osx
@@ -138,7 +139,7 @@ build-rustdoc:
DOC_INDEX_PAGE: "sc_service/index.html" # default redirected page DOC_INDEX_PAGE: "sc_service/index.html" # default redirected page
RUSTY_CACHIER_TOOLCHAIN: nightly RUSTY_CACHIER_TOOLCHAIN: nightly
# this variable gets overriden by "rusty-cachier environment inject", use the value as default # 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: artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc" name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
when: on_success when: on_success
@@ -181,7 +181,7 @@ test-deterministic-wasm:
variables: variables:
WASM_BUILD_NO_COLOR: 1 WASM_BUILD_NO_COLOR: 1
# this variable gets overriden by "rusty-cachier environment inject", use the value as default # 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: script:
- rusty-cachier snapshot create - rusty-cachier snapshot create
# build runtime # build runtime