name: ci
on:
pull_request: {}
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.96.0
with:
components: rustfmt, clippy
- run: cargo fmt --all --check
- run: cargo run -p xtask -- check-file-sizes
- run: cargo test --workspace
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo doc --workspace --no-deps
- run: cargo clippy --workspace --all-features --all-targets -- -D warnings
- run: cargo test --workspace --all-features
- run: cargo run -p xtask -- simdoc --check