Skip to content

Commit

Permalink
Optimize bingen build and do not bundle the original WASM build
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Jan 12, 2022
1 parent 69c8f41 commit 9245add
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ jobs:
- name: Build Release
run: |
cargo make release
- name: optimize WASM
uses: NiklasEi/wasm-opt@v1
with:
file: build/web/target/wasm_bg.wasm
output: build/web/target/wasm_bg.wasm
- name: Zip release
uses: vimtor/action-zip@v1
with:
Expand Down
1 change: 0 additions & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ mkdir ${target}
cp ${windows}/icon.ico ${web}/favicon.ico
cp ${TARGET_DIR}${CARGO_MAKE_CRATE_NAME}.wasm ${target}/${CARGO_MAKE_CRATE_NAME}.wasm
cp ${TARGET_DIR}wasm.js ${target}/wasm.js
cp ${TARGET_DIR}wasm_bg.wasm ${target}/wasm_bg.wasm
cp ./index.html ${web}/index.html
Expand Down

0 comments on commit 9245add

Please sign in to comment.