mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-14 10:30:43 +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
|
node-version: 14
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
- name: Install wasm-pack
|
- 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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
@ -43,7 +44,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt install expect
|
sudo apt install expect
|
||||||
/usr/bin/expect <<EOD
|
/usr/bin/expect <<EOD
|
||||||
spawn wasm-pack login
|
spawn npm adduser
|
||||||
expect {
|
expect {
|
||||||
"Username:" {send "paddim8\r"; exp_continue}
|
"Username:" {send "paddim8\r"; exp_continue}
|
||||||
"Password:" {send "${{ secrets.NPM_PASSWORD }}\r"; exp_continue}
|
"Password:" {send "${{ secrets.NPM_PASSWORD }}\r"; exp_continue}
|
||||||
|
@ -28,4 +28,4 @@ default = ["rug"]
|
|||||||
|
|
||||||
# Breaks when optimizing for some reason.
|
# Breaks when optimizing for some reason.
|
||||||
[package.metadata.wasm-pack.profile.release]
|
[package.metadata.wasm-pack.profile.release]
|
||||||
wasm-opt = false
|
wasm-opt = ["-Oz", "--enable-mutable-globals"]
|
||||||
|
Loading…
Reference in New Issue
Block a user