diff options
| author | Jack O'Connor <[email protected]> | 2025-03-17 11:16:35 -0700 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2025-03-18 10:00:16 -0700 |
| commit | 4011d240cb026a5e1f282438ef50aef701721c28 (patch) | |
| tree | cb751b50f12df4a2b4fca7a74388767ab0b036f4 /.github/workflows/ci.yml | |
| parent | 4ca3c6fb7fdecc4978c5075f89be3be8c0f38266 (diff) | |
add wasm tests to CI
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ed8325..7c8b257 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -222,6 +222,34 @@ jobs: - run: ./c/blake3_c_rust_bindings/cross_test.sh --target ${{ matrix.arch }} --features=neon if: startsWith(matrix.arch, 'armv7-') || startsWith(matrix.arch, 'aarch64-') + wasm_tests: + name: WASM tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-wasip1 + - name: install Wasmtime + run: | + curl https://wasmtime.dev/install.sh -sSf | bash + echo PATH: $PATH + mkdir -p ~/.local/bin + ln -s ~/.wasmtime/bin/wasmtime ~/.local/bin/wasmtime + - run: cargo test --target wasm32-wasip1 + - run: cargo test --target wasm32-wasip1 --no-default-features + - run: cargo test --target wasm32-wasip1 --features wasm32_simd + - run: cargo test --target wasm32-wasip1 --no-default-features --features wasm32_simd + - run: cargo test --target wasm32-wasip1 --benches --features=wasm32_simd + env: + RUSTC_BOOTSTRAP: 1 + - name: test vectors w/o SIMD + run: cargo test --target wasm32-wasip1 + working-directory: ./test_vectors + - name: test vectors w/ SIMD + run: cargo test --target wasm32-wasip1 --features wasm32_simd + working-directory: ./test_vectors + cargo_xwin_test: name: cargo xwin test runs-on: ubuntu-latest |
