name: CI
on:
push:
branches: [main]
pull_request:
jobs:
ci:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Build
run: cargo build --all-features
- name: Test (no features)
run: cargo test
- name: Test (all features)
run: cargo test --all-features
- name: Clippy
run: cargo clippy --all-features -- -D warnings