Skip to content

Commit

Permalink
Fix for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Nov 6, 2024
1 parent 9c8f2e1 commit 89a927b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,10 @@ jobs:
curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz | tar xz
- name: cargo nextest (without SIMD)
run: |
export CMAKE_TOOLCHAIN_FILE="$(pwd)/wasi-sdk-24.0-x86_64-linux/share/cmake/wasi-sdk.cmake"
cargo nextest run -p libbzip2-rs -p test-libbzip2-rs-sys --target wasm32-wasip1
export CC="$(pwd)/wasi-sdk-24.0-x86_64-linux/bin/clang"
export CFLAGS="-target wasm32-wasip1"
cargo nextest run -p libbzip2-rs-sys -p test-libbzip2-rs-sys --target wasm32-wasip1 \
-- --skip high_level_write --skip open_and_close # These tests use temp_dir
env:
RUST_BACKTRACE: 1
RUSTFLAGS: ""
Expand Down
2 changes: 1 addition & 1 deletion qemu-cargo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ linker = "s390x-linux-gnu-gcc"
linker = "i686-linux-gnu-gcc"

[target.wasm32-wasip1]
runner = "/home/runner/.wasmtime/bin/wasmtime"
runner = "/home/runner/.wasmtime/bin/wasmtime run --dir ../tests"

0 comments on commit 89a927b

Please sign in to comment.