-
Notifications
You must be signed in to change notification settings - Fork 38
51 lines (39 loc) · 1.09 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
on:
push:
branches: [master]
pull_request:
name: Continuous integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: '-Dwarnings' # Never tolerate warnings.
jobs:
ci:
strategy:
matrix:
toolchain: [
stable,
beta,
1.75.0 # MSRV
]
args: [
--all-features,
--no-default-features,
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
- run: cargo +nightly update -Z minimal-versions
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.args }}
- run: cargo check-custom-fmt
- run: RUSTDOCFLAGS="--deny rustdoc::broken_intra_doc_links" cargo doc --no-deps --document-private-items --all-features
- run: cargo clippy --all-targets ${{ matrix.args }}
- run: cargo test ${{ matrix.args }}