msig_court artifacts; build, verify & deploy instructions #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Try Runtime | |
on: | |
pull_request: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
tryruntime: | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-C debug-assertions=y" | |
RUST_BACKTRACE: 1 | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y build-essential git clang curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config git-restore-mtime | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-all-crates: "true" | |
- name: Build try-runtime bastiat runtime | |
run: cargo build --release --features try-runtime,testnet-runtime -p kitchensink-runtime | |
- name: Install try-runtime CLI | |
run: cargo install --git https://github.com/paritytech/try-runtime-cli --locked | |
- name: try-runtime on-runtime-upgrade bastiat | |
run: try-runtime --runtime ./target/release/wbuild/kitchensink-runtime/kitchensink_runtime.wasm on-runtime-upgrade live --uri wss://archive.testchain.liberland.org:443 | |
- name: try-runtime fast-forward bastiat | |
run: try-runtime --runtime ./target/release/wbuild/kitchensink-runtime/kitchensink_runtime.wasm fast-forward --n-blocks 5 --blocktime 6000 live --uri wss://archive.testchain.liberland.org:443 | |
- name: Build try-runtime mainnet runtime | |
run: cargo build --release --features try-runtime -p kitchensink-runtime | |
- name: try-runtime on-runtime-upgrade mainnet | |
run: try-runtime --runtime ./target/release/wbuild/kitchensink-runtime/kitchensink_runtime.wasm on-runtime-upgrade live --uri wss://mainnet.liberland.org:443 | |
- name: try-runtime fast-forward mainnet | |
run: try-runtime --runtime ./target/release/wbuild/kitchensink-runtime/kitchensink_runtime.wasm fast-forward --n-blocks 5 --blocktime 6000 live --uri wss://mainnet.liberland.org:443 |