Skip to content

Support the wasm32-wasip2 target #63

Support the wasm32-wasip2 target

Support the wasm32-wasip2 target #63

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:
include:
- rust: "1.81"
target: "wasm32-wasip1"
- rust: "1.82"
target: "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