Skip to content

Commit

Permalink
feat: add install-try-runtime recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Jan 13, 2025
1 parent 92a915b commit 665d8ba
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'

0 comments on commit 665d8ba

Please sign in to comment.