mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
rusty-cachier pipeline impovements and fixes (#11572)
This commit is contained in:
@@ -50,6 +50,9 @@ build-linux-substrate:
|
||||
- .collect-artifacts
|
||||
- .docker-env
|
||||
- .build-refs
|
||||
variables:
|
||||
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
|
||||
CARGO_TARGET_DIR: "./target"
|
||||
needs:
|
||||
- job: test-linux-stable
|
||||
artifacts: false
|
||||
@@ -59,7 +62,7 @@ build-linux-substrate:
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
- WASM_BUILD_NO_COLOR=1 time cargo build --release --verbose
|
||||
- mv /cargo_target_dir/release/substrate ./artifacts/substrate/.
|
||||
- mv $CARGO_TARGET_DIR/release/substrate ./artifacts/substrate/.
|
||||
- echo -n "Substrate version = "
|
||||
- if [ "${CI_COMMIT_TAG}" ]; then
|
||||
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
|
||||
@@ -79,6 +82,9 @@ build-linux-substrate:
|
||||
- .collect-artifacts
|
||||
- .docker-env
|
||||
- .build-refs
|
||||
variables:
|
||||
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
|
||||
CARGO_TARGET_DIR: "./target"
|
||||
needs:
|
||||
- job: cargo-check-subkey
|
||||
artifacts: false
|
||||
@@ -90,7 +96,7 @@ build-linux-substrate:
|
||||
- cd ./bin/utils/subkey
|
||||
- SKIP_WASM_BUILD=1 time cargo build --release --verbose
|
||||
- cd -
|
||||
- mv /cargo_target_dir/release/subkey ./artifacts/subkey/.
|
||||
- mv $CARGO_TARGET_DIR/release/subkey ./artifacts/subkey/.
|
||||
- echo -n "Subkey version = "
|
||||
- ./artifacts/subkey/subkey --version |
|
||||
sed -n -E 's/^subkey ([0-9.]+.*)/\1/p' |
|
||||
@@ -131,6 +137,8 @@ build-rustdoc:
|
||||
SKIP_WASM_BUILD: 1
|
||||
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"
|
||||
artifacts:
|
||||
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
|
||||
when: on_success
|
||||
@@ -140,8 +148,8 @@ build-rustdoc:
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
- time cargo +nightly doc --workspace --all-features --verbose
|
||||
- rm -f /cargo_target_dir/doc/.lock
|
||||
- mv /cargo_target_dir/doc ./crate-docs
|
||||
- rm -f $CARGO_TARGET_DIR/doc/.lock
|
||||
- mv $CARGO_TARGET_DIR/doc ./crate-docs
|
||||
# FIXME: remove me after CI image gets nonroot
|
||||
- chown -R nonroot:nonroot ./crate-docs
|
||||
- echo "<meta http-equiv=refresh content=0;url=${DOC_INDEX_PAGE}>" > ./crate-docs/index.html
|
||||
|
||||
Reference in New Issue
Block a user