Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Use wasm-tools instead of wasm-strip
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Dec 5, 2023
1 parent 1312186 commit ccaa38f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/actions/install_toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ description: "Install toolchains"
runs:
using: "composite"
steps:
- name: Install latest nightly
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74
override: true
target: wasm32-unknown-unknown
components: rustfmt
- run: cargo install wasm-tools
shell: bash
- run: sudo apt update
shell: bash
- run: sudo apt -y install build-essential make cmake pkg-config libssl-dev git llvm clang libclang-dev protobuf-compiler
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ opt: $(OPTIMIZED_OUTPUT)

%-stripped.wasm: %.wasm
wasm-opt $< -Os -o $@
wasm-strip $@
wasm-tools strip $@ -o $@

native:
cargo build --release
Expand Down

0 comments on commit ccaa38f

Please sign in to comment.