Skip to content

Commit

Permalink
chore(CI): unlock wasm-pack version (#2307)
Browse files Browse the repository at this point in the history
* unlock wasm-pack version

Signed-off-by: onur-ozkan <work@onurozkan.dev>

* force yes on docker build

Signed-off-by: onur-ozkan <work@onurozkan.dev>

---------

Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan authored Dec 26, 2024
1 parent d90170b commit 7464be1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ RUN apt-get install -y \

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain nightly-2023-06-01 -y
ENV PATH="/root/.cargo/bin:$PATH"
RUN cargo install wasm-pack --version 0.10.3
# TODO: Lock wasm-pack version
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v25.3/protoc-25.3-linux-x86_64.zip
RUN unzip protoc-25.3-linux-x86_64.zip && mv ./include/google /usr/include/google

3 changes: 2 additions & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ jobs:
rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: CARGO_HOME=/root/.cargo cargo install wasm-pack --version 0.10.3
# TODO: Lock wasm-pack version
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Calculate commit hash for PR commit
if: github.event_name == 'pull_request'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ jobs:
rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: CARGO_HOME=/root/.cargo cargo install wasm-pack --version 0.10.3
# TODO: Lock wasm-pack version
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Calculate commit hash for PR commit
if: github.event_name == 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion docs/WASM_BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To build WASM binary from source, the following prerequisites are required:

1. Install `wasm-pack`
```
cargo install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
```
2. OSX specific: install `llvm`
```
Expand Down

0 comments on commit 7464be1

Please sign in to comment.