Add wasm tests (#74)
This commit is contained in:
parent
2b2881a375
commit
5077768172
13 changed files with 92 additions and 29 deletions
19
.github/workflows/tests.yml
vendored
19
.github/workflows/tests.yml
vendored
|
|
@ -28,3 +28,22 @@ jobs:
|
|||
run: cp Cargo.lock.msrv Cargo.lock
|
||||
- name: Test
|
||||
run: cargo check --all-features
|
||||
|
||||
test-wasi:
|
||||
name: Test on WASI
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
targets: wasm32-wasip1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Install WasmTime
|
||||
run: |
|
||||
curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.0/wasmtime-v13.0.0-x86_64-linux.tar.xz
|
||||
tar xvf wasmtime-v13.0.0-x86_64-linux.tar.xz
|
||||
echo `pwd`/wasmtime-v13.0.0-x86_64-linux >> $GITHUB_PATH
|
||||
- name: Test
|
||||
run: make wasi-test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue