Skip to content

Commit

Permalink
lock wasm-pack version on build runners
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Dec 23, 2024
1 parent 1bcf27f commit c13fa4c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ 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 curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y
RUN cargo install wasm-pack --version 0.10.3
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

8 changes: 7 additions & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,13 @@ jobs:
rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y
run: |
CARGO_HOME=/home/runner/.cargo cargo install wasm-pack --version 0.10.3
which cargo
echo "--------------"
ls /home/runner/.cargo/bin
/home/runner/.cargo/bin/wasm-pack --version
wasm-pack --version
- name: Calculate commit hash for PR commit
if: github.event_name == 'pull_request'
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,11 @@ jobs:
rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y
run: |
CARGO_HOME=/home/runner/.cargo cargo install wasm-pack --version 0.10.3
which cargo
echo "--------------"
ls /home/runner/.cargo
- name: Calculate commit hash for PR commit
if: github.event_name == 'pull_request'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ jobs:
deps: ('protoc')

- name: Install wasm-pack
# Use the latest wasm-pack for up-to-date compatibility coverage on KDF.
# As we don't share any build artifacts from this pipeline, we don't need
# to lock the version here.
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Download geckodriver
Expand Down

0 comments on commit c13fa4c

Please sign in to comment.