From 6119ce17fbd34d39af752c3052ba576e7c104402 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 8 Nov 2024 07:58:38 +0700 Subject: [PATCH] remove cargo-wasi --- .github/workflows/ci.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b773d1d9..e300a66bd 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-wasip2 - 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