name: CI
env:
CMAKE_POLICY_VERSION_MINIMUM: "3.5"
on:
push:
pull_request:
jobs:
rust:
name: Rust checks (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Formatting
run: cargo fmt --all -- --check
- name: Strict Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Tests
run: cargo test --workspace --all-targets
- name: Documentation tests
run: cargo test --workspace --doc