Merge pull request #27 from wacker-dev/examples #69
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: | |
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" | |
targets: "wasm32-wasip1" | |
- rust: "1.82" | |
targets: "wasm32-wasip2" | |
name: Test on target ${{ matrix.targets }} | |
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 |