Skip to content

Commit

Permalink
Move MSRV build to another job
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler committed Dec 31, 2023
1 parent 7985a9a commit b61b5f6
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -37,7 +26,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
toolchain: stable
override: true
profile: minimal

Expand All @@ -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
Expand Down

0 comments on commit b61b5f6

Please sign in to comment.