Support the wasm32-wasip2 target #59
Workflow file for this run
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
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: | ||
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@${{ matrix.rust }} | ||
with: | ||
targets: ${{ matrix.targets }} | ||
- name: cargo test | ||
run: cargo test |