Skip to content

Commit 2fb03c6

Browse files
mattheworrisMatthew Orris
authored and
Matthew Orris
committed
chore(upgrade): v0.9.43 to v1.0.0
The goal of this PR is to upgrade to Polkadot v1.0.0 Notable changes: - The docker images for the local relay network have been updated to v1.1.0 to accurately reflect the last working version of Rococo-testnet. - ci-base-image has been updated to install the stable and nightly toolchains. References - [Polkadot Forum Release Notes](https://forum.polkadot.network/t/polkadot-release-analysis-v1-0-0/3585) - [V1.0.0 Release Tag](https://github.com/paritytech/polkadot/releases/tag/v1.0.0) - [Polkadot-v0.9.43 vs Polkadot-v1.0.0 difference](paritytech/substrate@polkadot-v0.9.43...polkadot-v1.0.0#diff-e5be9978262555d1f400caa5ae803ffc96be0ba25fd4ed8bd917c12529474c44R105) issue-1639 issue-1605
1 parent 098cac0 commit 2fb03c6

File tree

111 files changed

+3340
-3364
lines changed

Some content is hidden

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

111 files changed

+3340
-3364
lines changed

.github/workflows/publish-dev-ci-base-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
push:
88
branches:
99
- disabled-as-this-branch-does-not-exist
10-
# - 1482-add-rust-toolchain-install-to-ci-base-image
10+
# - 1639-upgrade-to-polkadot-release-v100
1111
env:
1212
BIN_DIR: target/release
1313

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
RELEASE_BRANCH_NAME: release-${{github.event.inputs.release-version || github.ref_name}}
2323
LATEST_FULL_RELEASE_TAG: _LATEST-FULL-RELEASE
2424
TEST_RUN: ${{startsWith(github.event.inputs.release-version || github.ref_name, 'v0.0.1')}}
25-
RUST_TOOLCHAIN: "nightly-2023-05-22" # Match to /rust-toolchain.toml
25+
RUST_TOOLCHAIN: "1.70.0" # Match to /rust-toolchain.toml
2626

2727
jobs:
2828
validate-release-version:
@@ -310,7 +310,7 @@ jobs:
310310
srtool --version
311311
- name: Build Deterministic WASM
312312
run: |
313-
RUST_LOG=debug SRTOOL_TAG="1.66.1" srtool build \
313+
RUST_LOG=debug SRTOOL_TAG="1.70.0" srtool build \
314314
--build-opts="'--features on-chain-release-build,no-metadata-docs,${{matrix.features}}'" \
315315
--profile=${{matrix.build-profile}} \
316316
--package=${{matrix.package}}
@@ -349,7 +349,7 @@ jobs:
349349
- name: Build Docs
350350
run: |
351351
rustup target add wasm32-unknown-unknown
352-
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo doc --no-deps --workspace --features frequency
352+
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly-2023-07-13 doc --no-deps --workspace --features frequency
353353
- name: Fix file permissions
354354
shell: sh
355355
run: |

.github/workflows/verify-pr-commit.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ jobs:
199199
- name: Check Out Repo
200200
uses: actions/checkout@v4
201201
- name: Check
202-
run: cargo fmt --check
202+
# Remove these install commands when ci-base-image has nightly toolchain
203+
run: |
204+
rustup toolchain install nightly-2023-07-13
205+
rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
206+
cargo +nightly-2023-07-13 fmt --check
203207
204208
lint-rust-code:
205209
needs: changes
@@ -211,8 +215,11 @@ jobs:
211215
- name: Check Out Repo
212216
uses: actions/checkout@v4
213217
- name: Lint
218+
# Remove these install commands when ci-base-image has nightly toolchain
214219
run: |
215-
SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo clippy \
220+
rustup toolchain install nightly-2023-07-13
221+
rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
222+
SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo +nightly-2023-07-13 clippy \
216223
--features runtime-benchmarks,frequency-lint-check \
217224
-- \
218225
-D warnings
@@ -227,9 +234,11 @@ jobs:
227234
- name: Check Out Repo
228235
uses: actions/checkout@v4
229236
- name: Build Docs
237+
# Remove these install commands when ci-base-image has nightly toolchain
230238
run: |
231-
rustup target add wasm32-unknown-unknown
232-
RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo doc --no-deps --features frequency
239+
rustup toolchain install nightly-2023-07-13
240+
rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
241+
RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo +nightly-2023-07-13 doc --no-deps --features frequency
233242
234243
verify-rust-packages-and-deps:
235244
needs: changes
@@ -367,7 +376,7 @@ jobs:
367376
- name: Build Deterministic WASM
368377
if: steps.cache-wasm.outputs.cache-hit != 'true'
369378
run: |
370-
RUST_LOG=debug SRTOOL_TAG="1.66.1" srtool build \
379+
RUST_LOG=debug SRTOOL_TAG="1.70.0" srtool build \
371380
--build-opts="'--features on-chain-release-build,no-metadata-docs,${{matrix.features}}'" \
372381
--profile=${{matrix.build-profile}} \
373382
--package=${{matrix.package}}
@@ -673,7 +682,6 @@ jobs:
673682
--dev \
674683
--sealing=instant \
675684
--wasm-execution=compiled \
676-
--execution=wasm \
677685
--no-telemetry \
678686
--no-prometheus \
679687
--port $((30333)) \

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
rust 1.69
1+
rust 1.70
22
make 4.3
33
cmake 3.24.1

0 commit comments

Comments
 (0)