name: CI on: push: branches: - "**" pull_request: jobs: rust-checks: name: ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: - ubuntu-latest - macos-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Rust uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - name: Cache dependencies uses: Swatinem/rust-cache@v2 - name: Check formatting run: cargo fmt --all -- --check - name: Check benchmarks compile run: cargo bench --workspace --all-targets --no-run - name: Lint run: cargo clippy --workspace --all-targets -- -D warnings - name: Test run: cargo test --workspace --all-targets