mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 12:11:09 +00:00
Add forklift to remaining jobs (#3236)
Add [forklift caching](https://gitlab.parity.io/parity/infrastructure/ci_cd/forklift/forklift) to remainig jobs by .sh and .py scripts: - cargo-check-each-crate x6 (`.gitlab/check-each-crate.py`) - build-linux-stable (`polkadot/scripts/build-only-wasm.sh`) by before_script: - build-linux-substrate - build-subkey-linux (with `.build-subkey` job) - cargo-check-benches x2 **To disable feature set FORKLIFT_BYPASS variable to true in [project settings in gitlab](https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/settings/ci_cd)** (forklift now handles FORKLIFT_BYPASS by itself)
This commit is contained in:
@@ -55,7 +55,7 @@ for i in range(0, crates_per_group + overflow_crates):
|
||||
|
||||
print(f"Checking {crates[crate][0]}", file=sys.stderr)
|
||||
|
||||
res = subprocess.run(["cargo", "check", "--locked"], cwd = crates[crate][1])
|
||||
res = subprocess.run(["forklift", "cargo", "check", "--locked"], cwd = crates[crate][1])
|
||||
|
||||
if res.returncode != 0:
|
||||
sys.exit(1)
|
||||
|
||||
@@ -314,8 +314,9 @@ build-linux-substrate:
|
||||
# tldr: we need to checkout the branch HEAD explicitly because of our dynamic versioning approach while building the substrate binary
|
||||
# see https://github.com/paritytech/ci_cd/issues/682#issuecomment-1340953589
|
||||
- git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
|
||||
- !reference [.forklift-cache, before_script]
|
||||
script:
|
||||
- WASM_BUILD_NO_COLOR=1 time cargo build --locked --release -p staging-node-cli
|
||||
- time WASM_BUILD_NO_COLOR=1 cargo build --locked --release -p staging-node-cli
|
||||
- mv $CARGO_TARGET_DIR/release/substrate-node ./artifacts/substrate/substrate
|
||||
- echo -n "Substrate version = "
|
||||
- if [ "${CI_COMMIT_TAG}" ]; then
|
||||
@@ -352,9 +353,10 @@ build-runtimes-polkavm:
|
||||
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
|
||||
before_script:
|
||||
- mkdir -p ./artifacts/subkey
|
||||
- !reference [.forklift-cache, before_script]
|
||||
script:
|
||||
- cd ./substrate/bin/utils/subkey
|
||||
- SKIP_WASM_BUILD=1 time cargo build --locked --release
|
||||
- time SKIP_WASM_BUILD=1 cargo build --locked --release
|
||||
# - cd -
|
||||
# - mv $CARGO_TARGET_DIR/release/subkey ./artifacts/subkey/.
|
||||
# - echo -n "Subkey version = "
|
||||
|
||||
@@ -224,6 +224,7 @@ cargo-check-benches:
|
||||
git merge --verbose --no-edit FETCH_HEAD;
|
||||
fi
|
||||
fi'
|
||||
- !reference [.forklift-cache, before_script]
|
||||
parallel: 2
|
||||
script:
|
||||
- mkdir -p ./artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
|
||||
|
||||
Reference in New Issue
Block a user