Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ stages:

build-production-wasm:
image:
name: paritytech/srtool:1.75.0
# Use srtool image that has the right subwasm fix. The first version with the fix is subwasm 0.17.0, available only with rustc 1.81.0.
name: paritytech/srtool:1.81.0-0.17.0
entrypoint: [""]
stage: build
parallel:
Expand All @@ -21,6 +22,10 @@ build-production-wasm:
- export AUTHORIZE_UPGRADE_PREFIX=0x02
- export AUTHORIZE_UPGRADE_CHECK_VERSION=true
- export VERBOSE=true
# Must be in sync with the toolchain file in the project root.
- export RUSTC_VERSION=1.74.0
# Required since we are overriding `RUSTC_VERSION`
- rustup target add wasm32-unknown-unknown
- cp -r * /build
- /srtool/build build
- subwasm meta --format=json+scale /out/${RUNTIME}_runtime.compact.wasm > /out/${RUNTIME}-metadata.json
Expand Down
1 change: 1 addition & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[toolchain]
# When changing this, please update the RUSTC_VERSION variable of the `build-production-wasm` Gitlab pipeline.
channel = "1.74.0"
components = ["clippy", "rust-src", "rustfmt"]
targets = ["wasm32-unknown-unknown"]
Loading