diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e401d2ab..43b73b87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,16 @@ name: CI on: [push, pull_request] -env: - minrust: 1.56.0 - jobs: + style: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - run: cargo fmt --all --check + test: name: Test runs-on: ubuntu-latest @@ -23,13 +29,16 @@ jobs: - run: cargo test --workspace - if: matrix.rust == 'nightly' run: cargo test --benches - - name: Check minimal versions - if: matrix.rust == 'nightly' - run: | - cargo clean - cargo update -Z minimal-versions - cargo check - - run: cargo fmt --all --check + + minimal-versions: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@cargo-hack + - uses: taiki-e/install-action@cargo-minimal-versions + - run: cargo minimal-versions check --workspace MSRV: runs-on: ubuntu-latest