From 665d8ba458fc83ba95825d46984b3b5c639d8a56 Mon Sep 17 00:00:00 2001 From: Kelvin Steiner Date: Mon, 13 Jan 2025 16:02:05 -0300 Subject: [PATCH] feat: add `install-try-runtime` recipe --- justfile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/justfile b/justfile index 3bd777f..0d5852b 100644 --- a/justfile +++ b/justfile @@ -33,20 +33,18 @@ gen-spec-file env: gen-base-spec @echo "Spec file generated at: tmp/spec/{{env}}.json" +# Benchmarks + run-benchmarks: cargo build -r --features runtime-benchmarks ./target/release/torus-node benchmark pallet --pallet pallet_torus0 --chain dev --extrinsic "*" --steps 50 --repeat 20 --output pallets/torus0/src/weights.rs --template=./.maintain/frame-weight-template.hbs ./target/release/torus-node benchmark pallet --pallet pallet_governance --chain dev --extrinsic "*" --steps 50 --repeat 20 --output pallets/governance/src/weights.rs --template=./.maintain/frame-weight-template.hbs ./target/release/torus-node benchmark pallet --pallet pallet_emission0 --chain dev --extrinsic "*" --steps 50 --repeat 20 --output pallets/emission0/src/weights.rs --template=./.maintain/frame-weight-template.hbs +# Runtime Update Testing -# Github Actions - -run-workflows: - act --secret-file .env \ - -P 'ubuntu-24.04-8core-bakunin=ghcr.io/catthehacker/act-ubuntu:24.04' \ - -P 'ubuntu-24.04-16core-friedrich=ghcr.io/catthehacker/act-ubuntu:24.04' \ - -P 'ubuntu-22.04-32core-karl=ghcr.io/catthehacker/ubuntu:act-22.04' +install-try-runtime: + cargo install --git https://github.com/paritytech/try-runtime-cli --locked try-runtime-upgrade-testnet: cargo build --release --features try-runtime @@ -55,3 +53,11 @@ try-runtime-upgrade-testnet: try-runtime-upgrade-mainnet: cargo build --release --features try-runtime RUST_BACKTRACE=1 RUST_LOG=info try-runtime --runtime target/release/wbuild/torus-runtime/torus_runtime.compact.compressed.wasm on-runtime-upgrade --blocktime 8000 live --uri wss://api.torus.network + +# Github Actions + +run-workflows: + act --secret-file .env \ + -P 'ubuntu-24.04-8core-bakunin=ghcr.io/catthehacker/act-ubuntu:24.04' \ + -P 'ubuntu-24.04-16core-friedrich=ghcr.io/catthehacker/act-ubuntu:24.04' \ + -P 'ubuntu-22.04-32core-karl=ghcr.io/catthehacker/ubuntu:act-22.04'