@@ -3,23 +3,66 @@ name: Build
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
6
+ clippy :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ os : [ubuntu-latest]
11
+ rust : [stable, nightly]
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : dtolnay/rust-toolchain@master
15
+ with :
16
+ toolchain : ${{ matrix.rust }}
17
+ components : clippy
18
+ - run : cargo clippy --workspace --no-default-features
19
+ - run : cargo clippy --workspace --all-features
20
+
21
+ fmt :
22
+ runs-on : ${{ matrix.os }}
23
+ strategy :
24
+ matrix :
25
+ os : [ubuntu-latest]
26
+ rust : [nightly]
27
+ steps :
28
+ - uses : actions/checkout@v3
29
+ - uses : dtolnay/rust-toolchain@master
30
+ with :
31
+ toolchain : ${{ matrix.rust }}
32
+ components : rustfmt
33
+ - run : cargo fmt --all -- --check
34
+
35
+ test :
7
36
name : ${{ matrix.os }} - ${{ matrix.rust }}
8
37
runs-on : ${{ matrix.os }}
9
38
strategy :
10
39
matrix :
11
40
os : [ubuntu-latest, macos-latest, windows-latest]
12
- rust : [stable, nightly, 1.65.0]
41
+ rust : [stable, nightly, '1.65.0']
42
+ steps :
43
+ - uses : actions/checkout@v3
44
+ - uses : dtolnay/rust-toolchain@master
45
+ with :
46
+ toolchain : ${{ matrix.rust }}
47
+ - run : cargo generate-lockfile -Zminimal-versions
48
+ env :
49
+ RUSTC_BOOTSTRAP : 1
50
+ if : ${{ matrix.rust == '1.65.0' }}
51
+ - run : cargo test --workspace --no-default-features
52
+ - run : cargo test --workspace --all-features
53
+
54
+ feature-powerset :
55
+ runs-on : ${{ matrix.os }}
56
+ strategy :
57
+ matrix :
58
+ os : [ubuntu-latest]
59
+ rust : [stable, nightly]
13
60
steps :
14
61
- uses : actions/checkout@v3
15
62
- uses : dtolnay/rust-toolchain@master
16
63
with :
17
64
toolchain : ${{ matrix.rust }}
18
- components : clippy, rustfmt
19
- - run : cargo build
20
- - run : cargo test
21
- - run : cargo test --features itoa
22
- working-directory : markup
23
- - run : cargo fmt -- --check
24
- if : ${{ matrix.os == 'ubuntu-latest' }}
25
- - run : cargo clippy --all-targets
65
+ - uses : taiki-e/install-action@v2
66
+ with :
67
+ tool : cargo-hack
68
+ - run : cargo hack test --workspace --feature-powerset --optional-deps
0 commit comments