-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (54 loc) · 1.61 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
pull_request:
push:
branches:
- "main"
env:
RUSTFLAGS: -D warnings
jobs:
check:
strategy:
fail-fast: false
matrix:
toolchain:
- stable-x86_64-pc-windows-msvc
- stable-x86_64-apple-darwin
- stable-x86_64-unknown-linux-gnu
- beta-x86_64-unknown-linux-gnu
- nightly-x86_64-unknown-linux-gnu
include:
- toolchain: stable-x86_64-pc-windows-msvc
os: windows-latest
- toolchain: stable-x86_64-apple-darwin
os: macos-latest
- toolchain: stable-x86_64-unknown-linux-gnu
os: ubuntu-latest
- toolchain: beta-x86_64-unknown-linux-gnu
os: ubuntu-latest
- toolchain: nightly-x86_64-unknown-linux-gnu
os: ubuntu-latest
name: Check on ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: rust-toolchain ( ${{ matrix.toolchain }} )
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: "`cargo check`"
run: cargo check --all-targets --all-features
- name: "`cargo test`"
run: cargo test --no-fail-fast --verbose --locked
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: rust-toolchain
uses: dtolnay/rust-toolchain@stable
- name: "`cargo deny`"
uses: EmbarkStudios/cargo-deny-action@v1
- name: "`cargo clippy`"
run: cargo clippy --all-targets --all-features