-
Notifications
You must be signed in to change notification settings - Fork 11
102 lines (96 loc) · 3.46 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- uses: actions-rust-lang/rustfmt@v1
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings
tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- stable
- nightly
features:
-
- --no-default-features --features Debug
- --no-default-features --features Clone
- --no-default-features --features Copy
- --no-default-features --features Clone --features Copy
- --no-default-features --features PartialEq
- --no-default-features --features Eq
- --no-default-features --features PartialEq --features Eq
- --no-default-features --features PartialOrd
- --no-default-features --features Ord
- --no-default-features --features PartialOrd --features Ord
- --no-default-features --features Hash
- --no-default-features --features Default
- --no-default-features --features Deref
- --no-default-features --features DerefMut
- --no-default-features --features Deref --features DerefMut
- --no-default-features --features Into
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test ${{ matrix.features }}
- run: cargo doc ${{ matrix.features }}
MSRV:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- "1.60"
features:
-
- --no-default-features --features Debug
- --no-default-features --features Clone
- --no-default-features --features Copy
- --no-default-features --features Clone --features Copy
- --no-default-features --features PartialEq
- --no-default-features --features Eq
- --no-default-features --features PartialEq --features Eq
- --no-default-features --features PartialOrd
- --no-default-features --features Ord
- --no-default-features --features PartialOrd --features Ord
- --no-default-features --features Hash
- --no-default-features --features Default
- --no-default-features --features Deref
- --no-default-features --features DerefMut
- --no-default-features --features Deref --features DerefMut
- --no-default-features --features Into
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --lib --bins ${{ matrix.features }}