mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
ci: use production profile for benchmarks (#5100)
This commit is contained in:
@@ -514,12 +514,13 @@ update_polkadot_weights: &update-weights
|
|||||||
stage: stage2
|
stage: stage2
|
||||||
when: manual
|
when: manual
|
||||||
variables:
|
variables:
|
||||||
|
PROFILE: production
|
||||||
RUNTIME: polkadot
|
RUNTIME: polkadot
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- ${RUNTIME}_weights_${CI_COMMIT_SHORT_SHA}.patch
|
- ${RUNTIME}_weights_${CI_COMMIT_SHORT_SHA}.patch
|
||||||
script:
|
script:
|
||||||
- ./scripts/run_benches_for_runtime.sh $RUNTIME
|
- ./scripts/run_benches_for_runtime.sh $RUNTIME $PROFILE
|
||||||
- git diff -P > ${RUNTIME}_weights_${CI_COMMIT_SHORT_SHA}.patch
|
- git diff -P > ${RUNTIME}_weights_${CI_COMMIT_SHORT_SHA}.patch
|
||||||
# uses the "shell" executors
|
# uses the "shell" executors
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
# current reference machine: https://github.com/paritytech/substrate/pull/5848
|
# current reference machine: https://github.com/paritytech/substrate/pull/5848
|
||||||
|
|
||||||
runtime="$1"
|
runtime="$1"
|
||||||
standard_args="--release --locked --features=runtime-benchmarks"
|
profile="$2"
|
||||||
|
standard_args="--profile $profile --locked --features=runtime-benchmarks"
|
||||||
|
|
||||||
echo "[+] Running all benchmarks for $runtime"
|
echo "[+] Running all benchmarks for $runtime"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user