mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 07:27:55 +00:00
Use prebuilt try-runtime binary in CI (#1898)
`cargo install` takes a long time in CI. We want to run it relatively frequently without chewing through so much compute (see https://github.com/paritytech/ci_cd/issues/771) so I added automatic binary releases to the try-runtime-cli repo. A small added benefit is we can use it in our existing `on-runtime-upgrade` checks, which should cut their execution time by about half.
This commit is contained in:
@@ -112,12 +112,16 @@ test-rust-feature-propagation:
|
||||
script:
|
||||
- |
|
||||
export RUST_LOG=remote-ext=debug,runtime=debug
|
||||
echo "---------- Installing try-runtime-cli ----------"
|
||||
time cargo install --locked --git https://github.com/paritytech/try-runtime-cli --tag v0.3.0
|
||||
|
||||
echo "---------- Downloading try-runtime CLI ----------"
|
||||
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.3.3/try-runtime-x86_64-unknown-linux-musl -o try-runtime
|
||||
chmod +x ./try-runtime
|
||||
|
||||
echo "---------- Building ${PACKAGE} runtime ----------"
|
||||
time cargo build --release --locked -p "$PACKAGE" --features try-runtime
|
||||
|
||||
echo "---------- Executing `on-runtime-upgrade` for ${NETWORK} ----------"
|
||||
time try-runtime \
|
||||
time ./try-runtime \
|
||||
--runtime ./target/release/wbuild/"$PACKAGE"/"$WASM" \
|
||||
on-runtime-upgrade --checks=pre-and-post ${EXTRA_ARGS} live --uri ${URI}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user