Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conserve CI minutes via cache, skip macOS+Windows MSRV builds #827

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:

strategy:
matrix:
rust_version: [stable, 1.70.0]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand All @@ -27,10 +26,13 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
toolchain: stable
override: true
profile: minimal

- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Setup Aftman
uses: ok-nick/[email protected]
with:
Expand All @@ -42,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/[email protected]
with:
version: 'v0.2.7'

- name: Build
run: cargo build --locked --verbose

lint:
name: Rustfmt, Clippy, & Stylua
runs-on: ubuntu-latest
Expand All @@ -58,6 +87,9 @@ jobs:
override: true
components: rustfmt, clippy

- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Setup Aftman
uses: ok-nick/[email protected]
with:
Expand Down
Loading