Skip to content

Commit 655eb9b

Browse files
committed
use nightly for website
1 parent 88a4bd0 commit 655eb9b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/wasm.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: cargo install wasm-pack
2424
- name: Install Binaryen (wasm-opt)
2525
run: |
26-
BINARYEN_VERSION=version_123
26+
BINARYEN_VERSION=$(curl -s https://api.github.com/repos/WebAssembly/binaryen/releases/latest | jq -r .tag_name)
2727
curl -L -O https://github.com/WebAssembly/binaryen/releases/download/${BINARYEN_VERSION}/binaryen-${BINARYEN_VERSION}-x86_64-linux.tar.gz
2828
tar -xzf binaryen-${BINARYEN_VERSION}-x86_64-linux.tar.gz
2929
echo "$(pwd)/binaryen-${BINARYEN_VERSION}/bin" >> $GITHUB_PATH
@@ -40,6 +40,7 @@ jobs:
4040

4141
- name: Build WASM app
4242
run: |
43+
export RUSTUP_TOOLCHAIN=nightly
4344
wasm-pack build --out-dir www/pkg --target web --release --no-default-features --features "wasm-draw"
4445
wasm-opt -O3 --enable-bulk-memory --enable-nontrapping-float-to-int -o www/pkg/kalc_plot_bg.wasm www/pkg/kalc_plot_bg.wasm
4546

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)