Skip to content

Commit b4a616f

Browse files
committed
web: Add rust-src component to CI for web tests, nightly, and Docker
1 parent 499473f commit b4a616f

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.github/workflows/release_nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ jobs:
336336
with:
337337
toolchain: 1.81.0
338338
targets: wasm32-unknown-unknown
339+
components: rust-src
339340

340341
- name: Setup Node.js
341342
uses: actions/setup-node@v4

.github/workflows/test_extension_dockerfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
toolchain: stable
2323
targets: wasm32-unknown-unknown
24+
components: rust-src
2425

2526
- name: Setup Node.js
2627
uses: actions/setup-node@v4

.github/workflows/test_web.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
uses: dtolnay/rust-toolchain@stable
5353
with:
5454
targets: wasm32-unknown-unknown
55+
components: rust-src
5556

5657
- name: Cache Cargo output
5758
uses: Swatinem/rust-cache@v2
@@ -117,6 +118,7 @@ jobs:
117118
uses: dtolnay/rust-toolchain@stable
118119
with:
119120
targets: wasm32-unknown-unknown
121+
components: rust-src
120122

121123
- name: Cache Cargo output
122124
uses: Swatinem/rust-cache@v2

web/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN wget --progress=:giga https://github.com/WebAssembly/binaryen/releases/downl
1111
mv wasm-opt /usr/local/bin
1212

1313
# Installing Rust using rustup:
14-
RUN wget 'https://sh.rustup.rs' --quiet -O- | sh -s -- -y --profile minimal --target wasm32-unknown-unknown
14+
RUN wget 'https://sh.rustup.rs' --quiet -O- | sh -s -- -y --profile minimal --target wasm32-unknown-unknown && rustup component add rust-src
1515
ENV PATH="/root/.cargo/bin:$PATH"
1616
# wasm-bindgen-cli version must match wasm-bindgen crate version.
1717
# Be sure to update in test_web.yml, release_nightly.yml, Cargo.toml, and web/README.md as well.

0 commit comments

Comments
 (0)