Skip to content

Commit 121ef4b

Browse files
HounsettehounsettesimonssoAlex Sedighi
authored
Update to polkadot v0.9.37 (#700)
Co-authored-by: hounsette <houssein@nodle.com> Co-authored-by: Fredrik Simonsson <fredrik@nodle.com> Co-authored-by: Alex Sedighi <alex@nodle.com>
1 parent d5bcbbd commit 121ef4b

54 files changed

Lines changed: 4908 additions & 4251 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,26 @@ env:
1414
try-runtime-uri: wss://eden-rpc.dwellir.com:443
1515

1616
jobs:
17-
clippy_lint:
17+
lints:
1818
runs-on: ubuntu-latest-8-cores
1919
steps:
2020
- uses: actions/checkout@v3
2121
- uses: actions-rust-lang/setup-rust-toolchain@v1
2222
with:
2323
toolchain: ${{ env.nightly }}
24+
components: rustfmt, clippy
2425
target: ${{ env.target }}
25-
components: clippy
26+
- name: Rustfmt Check
27+
uses: actions-rust-lang/rustfmt@v1
28+
- name: Install protobuf-compiler
29+
run: |
30+
sudo apt-get install protobuf-compiler
2631
- name: Clippy
2732
uses: actions-rs/clippy-check@v1
2833
with:
2934
token: ${{ secrets.GITHUB_TOKEN }}
3035
args: --all-features -- -A clippy::type_complexity -A clippy::identity_op -A clippy::boxed_local -D dead_code
3136
toolchain: ${{ env.nightly }}
32-
rustfmt:
33-
runs-on: ubuntu-latest-8-cores
34-
steps:
35-
- uses: actions/checkout@v3
36-
- uses: actions-rust-lang/setup-rust-toolchain@v1
37-
with:
38-
toolchain: ${{ env.nightly }}
39-
components: rustfmt
40-
- name: Rustfmt Check
41-
uses: actions-rust-lang/rustfmt@v1
4237

4338
tests:
4439
runs-on: ubuntu-latest-16-cores
@@ -49,7 +44,9 @@ jobs:
4944
with:
5045
toolchain: ${{ env.nightly }}
5146
target: ${{ env.target }}
52-
47+
- name: Install protobuf-compiler
48+
run: |
49+
sudo apt-get install protobuf-compiler
5350
- name: Cache cargo registry
5451
uses: actions/cache@v3
5552
with:
@@ -100,7 +97,9 @@ jobs:
10097
with:
10198
toolchain: ${{ env.nightly }}
10299
target: ${{ env.target }}
103-
100+
- name: Install protobuf-compiler
101+
run: |
102+
sudo apt-get install protobuf-compiler
104103
- name: Run cargo-tarpaulin
105104
uses: actions-rs/tarpaulin@v0.1
106105
with:
@@ -128,7 +127,9 @@ jobs:
128127
}' | jq '{"result"}[]' >> $GITHUB_OUTPUT
129128
cat $GITHUB_OUTPUT
130129
id: get_version
131-
130+
- name: Install protobuf-compiler
131+
run: |
132+
sudo apt-get install protobuf-compiler
132133
- name: Install Rust nightly
133134
uses: actions-rust-lang/setup-rust-toolchain@v1
134135
with:
@@ -140,17 +141,21 @@ jobs:
140141
with:
141142
path: snapshots
142143
key: ${{steps.get_version.outputs.eden_rev}}
143-
144-
- name: Try runtime update snap
144+
- name: Cargo build
145+
run: cargo build --release --features=try-runtime --bin nodle-parachain
146+
- name: Fetch snapshot
145147
if: steps.cachedir.outputs.cache-hit != 'true'
148+
continue-on-error: true
146149
run: |
147150
install -d snapshots
148151
date > snapshots/created_at
149-
cargo run --release --bin nodle-parachain --features=try-runtime try-runtime --execution native --chain ${{ env.try-runtime-chain }} --no-spec-name-check on-runtime-upgrade live --snapshot-path="snapshots/paradis-snapshot-full" -u ${{ env.try-runtime-uri}}
152+
./target/release/nodle-parachain try-runtime --runtime existing -lruntime=debug --chain ${{ env.try-runtime-chain }} create-snapshot "snapshots/eden-snapshot-full" -u ${{ env.try-runtime-uri}}
153+
- name: Run Migration on new snapshot
154+
if: steps.cachedir.outputs.cache-hit != 'true'
155+
run: |
156+
./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/eden-snapshot-full
150157
- name: Try runtime reuse snap
151158
if: steps.cachedir.outputs.cache-hit == 'true'
152159
run: |
153160
cat snapshots/created_at
154-
cargo run --release --bin nodle-parachain --features=try-runtime try-runtime --execution native --chain ${{ env.try-runtime-chain }} --no-spec-name-check on-runtime-upgrade snap --snapshot-path="snapshots/paradis-snapshot-full"
155-
156-
161+
./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/eden-snapshot-full"

0 commit comments

Comments
 (0)