Support wasm32-wasip2
#59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: CI | |
jobs: | |
test: | |
name: Tests | |
runs-on: ${{ matrix.target }} | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- 1.63 | |
target: | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup toolchain add ${{ matrix.rust }} | |
- run: cargo +${{ matrix.rust }} test | |
check: | |
name: Check wasi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup target add wasm32-wasip1 wasm32-wasip2 | |
- run: cargo check --target wasm32-wasip1 | |
- run: cargo check --target wasm32-wasip2 |