split build and clippy into their own jobs
This commit is contained in:
parent
49ae135e3f
commit
56866a461b
1 changed files with 23 additions and 1 deletions
24
.github/workflows/pr.yml
vendored
24
.github/workflows/pr.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
clippy:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -33,5 +33,27 @@ jobs:
|
||||||
- name: Check clippy lints
|
- name: Check clippy lints
|
||||||
run: cargo clippy
|
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
|
- name: Check build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue