Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,18 @@ jobs:
run: cargo test --target i686-unknown-linux-gnu

WASM:
name: WASM - stable toolchain
name: WASM - MSRV toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
# Note we do not use the recent lock file for wasm testing.
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Select toolchain"
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/[email protected]
- name: "Set dependencies"
# For now we only use minimal lock
run: cp Cargo-minimal.lock Cargo.lock
- name: "Run wasm script"
run: ./contrib/wasm.sh

Expand Down
2 changes: 1 addition & 1 deletion contrib/wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
set -euox pipefail

clang --version
CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
CARGO_TARGET_DIR=wasm cargo install --locked --force wasm-pack --version "`cat wasm-pack-version`"
printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
CC=clang wasm-pack build
CC=clang wasm-pack test --node
1 change: 1 addition & 0 deletions wasm-pack-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.13.1
Loading