-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix wrong folder name * replace "use", execute it locally, disable first half for testing * add back * minor update of INFO output * fmt --------- Co-authored-by: Yang <[email protected]>
- Loading branch information
Showing
3 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,10 +105,49 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run ${{ matrix.runtime.name }} try-runtime check | ||
uses: BillyWooo/[email protected] | ||
- name: Download try-runtime-cli | ||
run: | | ||
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.8.0/try-runtime-x86_64-unknown-linux-musl -o try-runtime | ||
chmod +x ./try-runtime | ||
mv try-runtime parachain | ||
shell: bash | ||
|
||
- name: Install Protoc | ||
uses: arduino/[email protected] | ||
with: | ||
runtime-package: ${{ matrix.runtime.package }} | ||
node-uri: ${{ matrix.runtime.uri }} | ||
checks: "all" | ||
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: Build ${{ matrix.runtime.name }} | ||
run: | | ||
cd parachain | ||
cargo build --profile production -p ${{ matrix.runtime.package }} --features try-runtime -q --locked | ||
shell: bash | ||
|
||
- name: Check migrations | ||
run: | | ||
cd parachain | ||
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 --disable-mbm-checks --blocktime 12000000 \ | ||
live --uri ${{ matrix.runtime.uri }}" | ||
# Echo the command before running it, for debugging purposes | ||
echo "Running command:" | ||
echo "$COMMAND" | ||
eval "$COMMAND" | ||
shell: bash |
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
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