Skip to content

Commit

Permalink
Update check-migrations.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ggwpez authored Sep 26, 2024
1 parent 1651f41 commit ee1396a
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions .github/workflows/check-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,48 @@ jobs:
echo "EXTRA_ARGS=$EXTRA_FLAGS" >> $GITHUB_ENV
echo "CHECKS=$CHECKS" >> $GITHUB_ENV
- name: Run ${{ matrix.runtime.name }} Runtime Checks
uses: "paritytech/try-runtime-gha@v0.2.0"
- name: Install Protoc
uses: arduino/setup-protoc@v1.3.0
with:
runtime-package: ${{ matrix.runtime.package }}
node-uri: ${{ matrix.runtime.uri }}
checks: ${{ env.CHECKS }}
extra-args: ${{ env.EXTRA_ARGS }}
version: "3.6.1"

- name: Add wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
shell: bash

- name: Add rust-src component
run: rustup component add rust-src
shell: bash

- name: Run ${{ matrix.runtime.name }} Runtime Checks
#uses: "paritytech/try-runtime-gha@v0.2.0"
#with:
# runtime-package: ${{ matrix.runtime.package }}
# node-uri: ${{ matrix.runtime.uri }}
# checks: ${{ env.CHECKS }}
# extra-args: ${{ env.EXTRA_ARGS }}
run: |
cargo install --git https://github.com/liamaharon/try-runtime-cli --branch liam-runtime-upgrade-mbms
cargo build --profile production -p ${{ matrix.runtime.package }} --features try-runtime -q --locked
PACKAGE_NAME=${{ matrix.runtime.package }}
RUNTIME_BLOB_NAME=$(echo $PACKAGE_NAME | sed 's/-/_/g').compact.compressed.wasm
RUNTIME_BLOB_PATH=./target/production/wbuild/$PACKAGE_NAME/$RUNTIME_BLOB_NAME
export RUST_LOG=remote-ext=debug,runtime=debug
# Store the command in a variable so we can log it
COMMAND="try-runtime \
--runtime $RUNTIME_BLOB_PATH \
on-runtime-upgrade --checks=$CHECKS \
$EXTRA_FLAGS \
live --uri ${{ matrix.runtime.uri }}"

# Echo the command before running it, for debugging purposes
echo "Running command:"
echo "$COMMAND"
eval "$COMMAND"


# This will only run if all the tests in its "needs" array passed.
# Add this as your required job, becuase if the matrix changes size (new things get added)
Expand Down

0 comments on commit ee1396a

Please sign in to comment.