File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -312,21 +312,30 @@ jobs:
312
312
uses : dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
313
313
with :
314
314
toolchain : " stable"
315
- targets : " wasm32-wasi "
315
+ targets : " wasm32-wasip1 "
316
316
- name : target
317
317
run : " rustc -vV | sed -n 's|host: ||p'"
318
318
- name : Install cargo-nextest
319
319
uses : taiki-e/install-action@56ab7930c591507f833cbaed864d201386d518a8
320
320
with :
321
321
tool : cargo-nextest
322
+ - name : Download wasi-sdk
323
+ run : |
324
+ curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz | tar xz
322
325
- name : cargo nextest (without SIMD)
323
- run : cargo nextest run -p zlib-rs --target wasm32-wasi
326
+ run : |
327
+ export CMAKE_TOOLCHAIN_FILE="$(pwd)/wasi-sdk-24.0-x86_64-linux/share/cmake/wasi-sdk.cmake"
328
+ cargo nextest run -p zlib-rs -p test-libz-rs-sys --target wasm32-wasip1
324
329
env :
330
+ CFLAGS : " -fno-pic" # workaround for linker bug (WebAssembly/wasi-sdk#492)
325
331
RUST_BACKTRACE : 1
326
332
RUSTFLAGS : " "
327
333
- name : cargo nextest (with SIMD)
328
- run : cargo nextest run -p zlib-rs --target wasm32-wasi
334
+ run : |
335
+ export CMAKE_TOOLCHAIN_FILE="$(pwd)/wasi-sdk-24.0-x86_64-linux/share/cmake/wasi-sdk.cmake"
336
+ cargo nextest run -p zlib-rs -p test-libz-rs-sys --target wasm32-wasip1
329
337
env :
338
+ CFLAGS : " -fno-pic" # workaround for linker bug (WebAssembly/wasi-sdk#492)
330
339
RUST_BACKTRACE : 1
331
340
RUSTFLAGS : " -Ctarget-feature=+simd128"
332
341
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ linker = "s390x-linux-gnu-gcc"
7
7
[target .i686-unknown-linux-gnu ]
8
8
linker = " i686-linux-gnu-gcc"
9
9
10
- [target .wasm32-wasi ]
10
+ [target .wasm32-wasip1 ]
11
11
runner = " /home/runner/.wasmtime/bin/wasmtime"
You can’t perform that action at this time.
0 commit comments