diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 981940aff..ec2bc4388 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,19 +16,8 @@ jobs: strategy: matrix: - rust_version: [stable, 1.70.0] os: [ubuntu-latest, windows-latest, macos-latest] - # It's unnecessary to build using MSRV on macOS and Windows - # because MSRV builds will not fail on a platform specific - # basis. So, we skip these two configurations to conserve - # GitHub Actions minutes. - exclude: - - os: macos-latest - rust_version: 1.70.0 - - os: windows-latest - rust_version: 1.70.0 - steps: - uses: actions/checkout@v3 with: @@ -37,7 +26,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust_version }} + toolchain: stable override: true profile: minimal @@ -55,6 +44,33 @@ jobs: - name: Test run: cargo test --locked --verbose + msrv: + name: Check MSRV + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.70.0 + override: true + profile: minimal + + - name: Rust cache + uses: Swatinem/rust-cache@v2 + + - name: Setup Aftman + uses: ok-nick/setup-aftman@v0.3.0 + with: + version: 'v0.2.7' + + - name: Build + run: cargo build --locked --verbose + lint: name: Rustfmt, Clippy, & Stylua runs-on: ubuntu-latest