diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9019d1d6..ae67ad9e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -104,19 +104,19 @@ jobs: run: | SKIP_WASM_BUILD=1 cargo test - # try-runtime: - # runs-on: - # group: laos - # labels: ubuntu-16-cores - # steps: - # - uses: actions/checkout@v3 - # - uses: ./.github/actions/setup - # - uses: ./.github/actions/cache - # with: - # cache-key: try_runtime - # - name: Build - # run: | - # cargo build --release --package laos-ownership --features=try-runtime - # - name: Try Runtime - # run: | - # RUST_LOG=try-runtime ./target/release/laos-ownership try-runtime --runtime ./target/release/wbuild/laos-ownership-runtime/laos_ownership_runtime.wasm on-runtime-upgrade --checks=pre-and-post live --uri ws://143.198.251.52:9944 \ No newline at end of file + try-runtime: + runs-on: + group: laos + labels: ubuntu-16-cores + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/setup + - uses: ./.github/actions/cache + with: + cache-key: try_runtime + - name: Build + run: | + cargo build --release --package laos-ownership --features=try-runtime + - name: Try Runtime + run: | + RUST_LOG=try-runtime ./target/release/laos-ownership try-runtime --runtime ./target/release/wbuild/laos-ownership-runtime/laos_ownership_runtime.wasm on-runtime-upgrade --checks=pre-and-post live --uri ws://161.35.247.178:9944 \ No newline at end of file diff --git a/ownership-chain/runtime/src/lib.rs b/ownership-chain/runtime/src/lib.rs index 5674f1a3b..5bd63679b 100644 --- a/ownership-chain/runtime/src/lib.rs +++ b/ownership-chain/runtime/src/lib.rs @@ -204,28 +204,10 @@ impl_opaque_keys! { } } -/// `laos-parachain` is an original spec name of the parachain. `try-runtime` fails when -/// `spec_name` does not match. So we use `laos-parachain` as a spec name to please CI. -/// -/// See [this issue](https://github.com/freeverseio/laos/issues/30) -#[cfg(feature = "try-runtime")] -#[sp_version::runtime_version] -pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("laos-parachain"), - impl_name: create_runtime_str!("laos-parachain"), - authoring_version: 1, - spec_version: 7, - impl_version: 0, - apis: RUNTIME_API_VERSIONS, - transaction_version: 1, - state_version: 1, -}; - /// Polkadot.js explorer does not support `laos-parachain` as an ethereum chain, therefore we /// use `frontier-template` as a spec name to make explorer work. /// /// See [this issue](https://github.com/freeverseio/laos/issues/30) -#[cfg(not(feature = "try-runtime"))] #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frontier-template"),