name: CI on: push: branches: ['main'] pull_request: jobs: test: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] rust: [stable] include: - os: ubuntu-latest rust: beta - os: ubuntu-latest rust: 1.61.0 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - run: cargo check --all-features --all-targets env: CARGO_INCREMENTAL: 0 # https://github.com/rust-lang/rust/issues/101518 - run: cargo test --all-features env: CARGO_INCREMENTAL: 0 # https://github.com/rust-lang/rust/issues/101518 lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: toolchain: stable components: rustfmt, clippy - run: cargo fmt --all -- --check - run: cargo clippy --all-targets --all-features -- -D warnings env: CARGO_INCREMENTAL: 0 # https://github.com/rust-lang/rust/issues/101518 audit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: EmbarkStudios/cargo-deny-action@v2