From c13fa4cec2a147de136883533704f7a7a7a60581 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Mon, 23 Dec 2024 11:27:14 +0300 Subject: [PATCH] lock wasm-pack version on build runners Signed-off-by: onur-ozkan --- .docker/Dockerfile | 2 +- .github/workflows/dev-build.yml | 8 +++++++- .github/workflows/release-build.yml | 6 +++++- .github/workflows/test.yml | 3 +++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 18b4dec0655..677d5f8152a 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -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 diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index a4fce83cbea..ec62ac05c1f 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -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' diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index a74a589d10a..0deaa3e3698 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12a60bbc3c3..5c9aa8d96eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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