split build and clippy into their own jobs

This commit is contained in:
Zero 2023-05-05 21:55:30 -06:00
parent 49ae135e3f
commit 56866a461b
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B

View file

@ -5,7 +5,7 @@ on:
workflow_dispatch:
jobs:
build:
clippy:
strategy:
fail-fast: false
matrix:
@ -33,5 +33,27 @@ jobs:
- name: Check clippy lints
run: cargo clippy
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust-version: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code into the proper directory
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Cache rust
uses: Swatinem/rust-cache@v2
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust-version }}
components: rustfmt
- name: Check build
run: cargo build --verbose