Skip to content

Commit 143102b

Browse files
authored
Change wasm32-unknown-unknown -> wasm32v1-none for CI (#826)
Relates to: #823 Wait for: paritytech/polkadot-sdk#9336 ? This PR changes: - `wasm32-unknown-unknown` to `wasm32v1-none` for CI, because of warning ``` Compiling coretime-kusama-runtime v1.0.0 (/_work/fellowship-001/runtimes/runtimes/system-parachains/coretime/coretime-kusama) warning: coretime-kusama-runtime@1.0.0: You are building WASM runtime using `wasm32-unknown-unknown` target, although Rust >= 1.84 supports `wasm32v1-none` target! warning: coretime-kusama-runtime@1.0.0: You can install it with `rustup target add wasm32v1-none --toolchain 1.88.0-x86_64-unknown-linux-gnu` if you're using `rustup`. warning: coretime-kusama-runtime@1.0.0: After installing `wasm32v1-none` target, you must rebuild WASM runtime from scratch, use `cargo clean` before building. ``` - quiet runtime compilation for bench bot - [X] Does not require a CHANGELOG entry
1 parent 93d62ed commit 143102b

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.github/scripts/cmd/cmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989

9090
# loop over remaining runtimes to collect available pallets
9191
for runtime in runtimesMatrix.values():
92-
os.system(f"cargo build -p {runtime['package']} --profile {profile} --features runtime-benchmarks")
92+
print(f'-- compiling the runtime {runtime["name"]}')
93+
os.system(f"cargo build -p {runtime['package']} --profile {profile} -q --features runtime-benchmarks")
9394
print(f'-- listing pallets for benchmark for {runtime["name"]}')
9495
wasm_file = f"target/{profile}/wbuild/{runtime['package']}/{runtime['package'].replace('-', '_')}.wasm"
9596
output = os.popen(

.github/workflows/check-migrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
- name: Install stable toolchain
110110
uses: dtolnay/rust-toolchain@master
111111
with:
112-
targets: "wasm32-unknown-unknown"
112+
targets: "wasm32v1-none"
113113
components: "rust-src"
114114
toolchain: "${{env.RUST_STABLE_VERSION}}"
115115

.github/workflows/cmd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,15 @@ jobs:
282282
uses: dtolnay/rust-toolchain@master
283283
if: startsWith(steps.get-pr-comment.outputs.group2, 'fmt')
284284
with:
285-
targets: "wasm32-unknown-unknown"
285+
targets: "wasm32v1-none"
286286
components: "rust-src, rustfmt"
287287
toolchain: "nightly-${{env.RUST_NIGHTLY_VERSION}}"
288288

289289
- name: Install stable toolchain
290290
uses: dtolnay/rust-toolchain@master
291291
if: startsWith(steps.get-pr-comment.outputs.group2, 'bench')
292292
with:
293-
targets: "wasm32-unknown-unknown"
293+
targets: "wasm32v1-none"
294294
components: "rust-src, rustfmt"
295295
toolchain: "${{env.RUST_STABLE_VERSION}}"
296296

.github/workflows/fmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install nightly toolchain
2727
uses: dtolnay/rust-toolchain@master
2828
with:
29-
targets: "wasm32-unknown-unknown"
29+
targets: "wasm32v1-none"
3030
components: "rustfmt"
3131
toolchain: "nightly-${{env.RUST_NIGHTLY_VERSION}}"
3232

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Install stable toolchain
6666
uses: dtolnay/rust-toolchain@master
6767
with:
68-
targets: "wasm32-unknown-unknown"
68+
targets: "wasm32v1-none"
6969
components: "rust-src"
7070
toolchain: "${{env.RUST_STABLE_VERSION}}"
7171

@@ -140,7 +140,7 @@ jobs:
140140
- name: Install stable toolchain
141141
uses: dtolnay/rust-toolchain@master
142142
with:
143-
targets: "wasm32-unknown-unknown"
143+
targets: "wasm32v1-none"
144144
components: "rust-src"
145145
toolchain: "${{env.RUST_STABLE_VERSION}}"
146146

@@ -176,7 +176,7 @@ jobs:
176176
- name: Install stable toolchain
177177
uses: dtolnay/rust-toolchain@master
178178
with:
179-
targets: "wasm32-unknown-unknown"
179+
targets: "wasm32v1-none"
180180
components: "rust-src"
181181
toolchain: "${{env.RUST_STABLE_VERSION}}"
182182

@@ -213,7 +213,7 @@ jobs:
213213
- name: Install stable toolchain
214214
uses: dtolnay/rust-toolchain@master
215215
with:
216-
targets: "wasm32-unknown-unknown"
216+
targets: "wasm32v1-none"
217217
components: "rust-src"
218218
toolchain: "${{env.RUST_STABLE_VERSION}}"
219219

@@ -256,7 +256,7 @@ jobs:
256256
- name: Install stable toolchain
257257
uses: dtolnay/rust-toolchain@master
258258
with:
259-
targets: "wasm32-unknown-unknown"
259+
targets: "wasm32v1-none"
260260
components: "rust-src"
261261
toolchain: "${{env.RUST_STABLE_VERSION}}"
262262

0 commit comments

Comments
 (0)