mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-13 18:10:42 +01:00
Changed to a more recent version of wasm-pack (ci), and added optimization to wasm
This commit is contained in:
parent
281fea8f3e
commit
b617ba83fe
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -33,7 +33,8 @@ jobs:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
run: cargo install --git https://github.com/rustwasm/wasm-pack.git --rev d46d1c69b788956160deed5e4e603f4f2780ffcf
|
||||
#run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
- name: Build
|
||||
run: |
|
||||
yarn install
|
||||
@ -43,7 +44,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt install expect
|
||||
/usr/bin/expect <<EOD
|
||||
spawn wasm-pack login
|
||||
spawn npm adduser
|
||||
expect {
|
||||
"Username:" {send "paddim8\r"; exp_continue}
|
||||
"Password:" {send "${{ secrets.NPM_PASSWORD }}\r"; exp_continue}
|
||||
|
@ -28,4 +28,4 @@ default = ["rug"]
|
||||
|
||||
# Breaks when optimizing for some reason.
|
||||
[package.metadata.wasm-pack.profile.release]
|
||||
wasm-opt = false
|
||||
wasm-opt = ["-Oz", "--enable-mutable-globals"]
|
||||
|
Loading…
Reference in New Issue
Block a user