Skip to content

Commit

Permalink
use try-runtime-cli in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ukint-vs committed Mar 20, 2024
1 parent 80045a2 commit 98cb157
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,19 @@ jobs:
- name: "Test: Try runtime migrations"
run: |
cargo build -p gear-cli --features try-runtime --locked ${{ matrix.profile_flags }}
./target/${{ matrix.profile }}/gear try-runtime --runtime ./target/${{ matrix.profile }}/wbuild/vara-runtime/vara_runtime.wasm on-runtime-upgrade --checks live --uri ws://rpc-private.vara-network.io:9944
export RUST_LOG=remote-ext=debug,runtime=debug
echo "---------- Downloading try-runtime CLI ----------"
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.5.4/try-runtime-x86_64-unknown-linux-musl -o try-runtime
chmod +x ./try-runtime
echo "---------- Building vara runtime ----------"
time cargo build -p gear-cli --features try-runtime --locked ${{ matrix.profile_flags }}
echo "---------- Executing on-runtime-upgrade for Vara ----------"
time ./try-runtime --runtime ./target/${{ matrix.profile }}/wbuild/vara-runtime/vara_runtime.wasm on-runtime-upgrade --checks=all live --uri ws://rpc-private.vara-network.io:9944
sleep 5
env:
RUST_LOG: info
RUST_LOG: info,remote-ext=debug,runtime=debug

- name: "Build: Production binaries"
if: ${{ github.event_name == 'push' && inputs.release }}
Expand Down

0 comments on commit 98cb157

Please sign in to comment.