Skip to content

Commit

Permalink
Add workflow for paradis try-runtime (#843)
Browse files Browse the repository at this point in the history
* Add workflow for paradis try-runtime
  • Loading branch information
simonsso authored Mar 27, 2024
1 parent 4ace8a7 commit 19c2eb6
Showing 1 changed file with 45 additions and 16 deletions.
61 changes: 45 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
toolchain: ${{ env.toolchain }}

test-runtime:
runs-on: ubuntu-latest-8-cores
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -74,7 +74,7 @@ jobs:
run: cargo test --all-features -p nodle-parachain

tests-with-linecoverage:
runs-on: ubuntu-latest-4-cores
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -98,7 +98,7 @@ jobs:
fail_ci_if_error: false
files: lcov.info

try-runtime:
try-runtime-prepare:
runs-on: ubuntu-latest

steps:
Expand All @@ -116,17 +116,46 @@ jobs:
uses: mozilla-actions/[email protected]
- name: Build runtime
run: cargo build --release --features=try-runtime -p runtime-eden
- name: Check Version
run: |
echo -n "eden_rev=" >> $GITHUB_OUTPUT
curl -s --request POST --url https://nodle-parachain.api.onfinality.io/public --header 'Content-Type: application/json' --data '{
"jsonrpc": "2.0",
"method": "state_getRuntimeVersion",
"params": [],
"id": 1
}' | jq .result.specVersion | sed 's/^/try-runtime-snapshot-eden-spec-/' >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
id: get_version
- name: Upload runtime artifact
uses: actions/upload-artifact@v4
with:
name: try_runtime
path: target/release/wbuild/runtime-eden/runtime_eden.wasm

try-runtime-paradis-execute:
runs-on: ubuntu-latest
needs: try-runtime-prepare
steps:
- name: Download runtime artifact
uses: actions/download-artifact@v4
with:
name: try_runtime
path: try_runtime
- uses: robinraju/[email protected]
with:
repository: "NodleCode/paradis-snapshot"
latest: true
fileName: "paradis-snapshot-full.bz2"
out-file-path: "snaps"
extract: false
- run: bunzip2 snaps/paradis-snapshot-full.bz2
- name: Run try-runtime paradis
uses: NodleCode/action-try-runtime/[email protected]
with:
snap: snaps/paradis-snapshot-full
runtime: try_runtime/runtime_eden.wasm
checks: "all"
options: "--disable-idempotency-checks"

try-runtime-eden-execute:
runs-on: ubuntu-latest
needs: try-runtime-prepare
steps:
- name: Download runtime artifact
uses: actions/download-artifact@v4
with:
name: try_runtime
path: try_runtime
- uses: robinraju/[email protected]
with:
repository: "NodleCode/eden-snapshot"
Expand All @@ -138,6 +167,6 @@ jobs:
uses: NodleCode/action-try-runtime/[email protected]
with:
snap: snaps/eden-snapshot-full
runtime: target/release/wbuild/runtime-eden/runtime_eden.wasm
runtime: try_runtime/runtime_eden.wasm
checks: "all"
options: "--disable-idempotency-checks"
options: "--disable-idempotency-checks"

0 comments on commit 19c2eb6

Please sign in to comment.