Skip to content
Open
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
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -646,15 +646,23 @@ jobs:
- uses: ./.github/actions/setup-rust
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
toolchain: nightly-2025-06-26
targets: "wasm32-wasip1"
components: "rust-src"
targets: "wasm32-wasip1,wasm32-unknown-unknown"

- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v3.1
# there is a compiler bug in nightly (but not in nightly-2025-06-26)
- run: cargo +nightly-2025-06-26 -Zbuild-std=panic_abort,std build --target wasm32-wasip1
- name: Build WASI binary
run: cargo build --target wasm32-wasip1
working-directory: ./wasm-test
- name: Run WASI test
run: wasmer run ./target/wasm32-wasip1/debug/wasm-test.wasm
working-directory: ./wasm-test
- run: wasmer run ./target/wasm32-wasip1/debug/wasm-test.wasm

# wasm-bindgen-test with headless browser
# wasm-pack automatically installs matching wasm-bindgen-cli from Cargo.lock
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Run wasm-bindgen tests (headless Firefox)
run: wasm-pack test --headless --firefox
working-directory: ./wasm-test

miri:
Expand Down
5 changes: 5 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ path = "benchmarks-website/**"
SPDX-FileCopyrightText = "Copyright the Vortex contributors"
SPDX-License-Identifier = "CC-BY-4.0"

[[annotations]]
path = "wasm-test/**"
SPDX-FileCopyrightText = "Copyright the Vortex contributors"
SPDX-License-Identifier = "CC-BY-4.0"

# Golden files are licensed under CC-BY-4.0.
[[annotations]]
path = "**/goldenfiles/**"
Expand Down
6 changes: 6 additions & 0 deletions wasm-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# WASM build artifacts.
/target
/pkg

# Cargo lock file for binary projects.
Cargo.lock
Loading
Loading