Skip to content

Commit

Permalink
ci : try-runtime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hounsette committed Feb 15, 2023
1 parent c24b809 commit fb1cf96
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,20 @@ jobs:
key: ${{steps.get_version.outputs.eden_rev}}
- name: Cargo build
run: cargo build --release --features=try-runtime --bin nodle-parachain
- name: Try runtime update snap
- name: Fetch snapshot
if: steps.cachedir.outputs.cache-hit != 'true'
OnError: continue
run: |
install -d snapshots
date > snapshots/created_at
./target/release/nodle-parachain try-runtime --runtime existing -lruntime=debug --chain ${{ env.try-runtime-chain }} create-snapshot "snapshots/paradis-snapshot-full" -u ${{ env.try-runtime-uri}}
- name: Run Migration on new snapshot
if: steps.cachedir.outputs.cache-hit != 'true'
./target/release/nodle-parachain try-runtime --runtime target/release/wbuild/runtime-eden/runtime_eden.wasm -lruntime=debug --chain ${{ env.try-runtime-chain }} on-runtime-upgrade snap -s snapshots/paradis-snapshot-full
./target/release/nodle-parachain try-runtime --runtime target/release/wbuild/runtime-eden/runtime_eden.wasm -lruntime=debug --chain ${{ env.try-runtime-chain }} execute-block live -u ${{ env.try-runtime-uri}}
- name: Try runtime reuse snap
if: steps.cachedir.outputs.cache-hit == 'true'
run: |
cat snapshots/created_at
./target/release/nodle-parachain try-runtime --runtime target/release/wbuild/runtime-eden/runtime_eden.wasm --chain ${{ env.try-runtime-chain }} on-runtime-upgrade snap --snapshot-path="snapshots/paradis-snapshot-full"
./target/release/nodle-parachain try-runtime --runtime target/release/wbuild/runtime-eden/runtime_eden.wasm -lruntime=debug --chain dev on-runtime-upgrade snap -s snapshots/paradis-snapshot-full

0 comments on commit fb1cf96

Please sign in to comment.