diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b773d1d9..ed4f06ece 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,18 +45,30 @@ jobs: run: cargo build - name: Test run: cargo test - wasi: - name: WASI Test Build + wasip1: + name: WASI P1 Test Build runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Install Rust uses: dtolnay/rust-toolchain@nightly - - name: Install Cargo WASI - run: cargo install cargo-wasi + with: + targets: wasm32-wasip1 + - name: Build + run: cargo build --target wasm32-wasip1 --features nightly + wasip2: + name: WASI P2 Test Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@nightly + with: + targets: wasm32-wasip1 - name: Build - run: cargo wasi build --features nightly + run: cargo build --target wasm32-wasip2 --features nightly wasm: name: WASM Test Build runs-on: ubuntu-latest