Skip to content

Commit

Permalink
more download wasm-opt
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Oct 16, 2023
1 parent 7ce63bd commit afc32cd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci-lint-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ jobs:
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

# - uses: brndnmtthws/rust-action-cargo-binstall@v1
# with:
# packages: wasm-opt
- run: |
- name: Install wasm-opt
run: |
curl -L https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz > /tmp/linux.tar.gz
tar -xvzf /tmp/linux.tar.gz -C /tmp
cp /tmp/binaryen-version_116/bin/wasm-opt ~/.cargo/bin
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci-sdk-docs-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Install wasm-opt
run: cargo install wasm-opt
- run: |
curl -L https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz > /tmp/linux.tar.gz
tar -xvzf /tmp/linux.tar.gz -C /tmp
cp /tmp/binaryen-version_116/bin/wasm-opt ~/.cargo/bin
- name: Build branch WASM packages
run: make sdk-wasm-build
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/ci-sdk-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ jobs:
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- uses: brndnmtthws/rust-action-cargo-binstall@v1
with:
packages: wasm-opt
- name: Install wasm-opt
run: |
curl -L https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz > /tmp/linux.tar.gz
tar -xvzf /tmp/linux.tar.gz -C /tmp
cp /tmp/binaryen-version_116/bin/wasm-opt ~/.cargo/bin
- name: Install wasm-bindgen-cli
run: cargo install wasm-bindgen-cli
Expand Down

0 comments on commit afc32cd

Please sign in to comment.