name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
check:
runs-on: macos-26
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile=minimal --component=clippy --component=rustfmt
- run: cargo clippy -- -D warnings
- run: cargo fmt --all -- --check
test:
strategy:
matrix:
os: [macos-26, ubuntu-26.04, windows-2025]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile=minimal
- run: cargo test