Skip to content

Support the wasm32-wasip2 target #62

Support the wasm32-wasip2 target

Support the wasm32-wasip2 target #62

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
- 'release-**'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@1.82.0
with:
targets: wasm32-wasip2
components: clippy, rustfmt
- name: Re-vendor WIT
run: |
./scripts/vendor-wit.sh
git diff --exit-code
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
test:
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
rust: [ "1.81", "1.82" ]
targets: [ "wasm32-wasip1", "wasm32-wasip2" ]
name: Test on Rust ${{ matrix.rust }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.targets }}
- name: cargo test
run: cargo test