File tree Expand file tree Collapse file tree 1 file changed +38
-12
lines changed Expand file tree Collapse file tree 1 file changed +38
-12
lines changed Original file line number Diff line number Diff line change 8
8
types : [checks_requested]
9
9
10
10
jobs :
11
- ci :
11
+ build-and-test :
12
12
name : CI
13
13
runs-on : ubuntu-latest
14
14
strategy :
15
15
matrix :
16
- version : [stable, beta, nightly ]
16
+ version : [stable, beta]
17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
@@ -25,22 +25,45 @@ jobs:
25
25
- name : Init submodules
26
26
run : git submodule update --init
27
27
28
- - name : Cargo bench
29
- run : cargo bench --all
30
- env :
31
- RUSTFLAGS : --cfg bench
28
+ - name : Cargo build
29
+ run : cargo build --all
32
30
33
31
- name : Cargo test
34
- if : matrix.version != 'nightly'
35
32
run : cargo test --all
36
33
37
34
- name : Test tendril w/encoding feature
38
- if : matrix.version != 'nightly'
39
35
run : cargo test -p tendril --features 'encoding encoding_rs'
40
36
41
- - name : Cargo doc
42
- if : matrix.version == 'nightly'
43
- run : cargo doc
37
+ doc :
38
+ name : Cargo doc
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : actions/checkout@v4
42
+ - name : Set toolchain
43
+ run : |
44
+ rustup set profile minimal
45
+ rustup override set nightly
46
+ - run : cargo doc
47
+ env :
48
+ RUSTFLAGS : --cfg bench
49
+
50
+ bench-html5ever :
51
+ name : Bench html5ever
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - uses : actions/checkout@v4
55
+ - run : cargo bench -p html5ever
56
+ env :
57
+ RUSTFLAGS : --cfg bench
58
+
59
+ bench-tendril :
60
+ name : Bench tendril
61
+ runs-on : ubuntu-latest
62
+ steps :
63
+ - uses : actions/checkout@v4
64
+ - run : cargo bench -p tendril -- --quick
65
+ env :
66
+ RUSTFLAGS : --cfg bench
44
67
45
68
msrv :
46
69
name : MSRV
@@ -83,9 +106,12 @@ jobs:
83
106
name : Result
84
107
runs-on : ubuntu-latest
85
108
needs :
86
- - ci
109
+ - build-and-test
110
+ - doc
87
111
- lint
88
112
- msrv
113
+ - bench-html5ever
114
+ - bench-tendril
89
115
90
116
steps :
91
117
- name : Success
You can’t perform that action at this time.
0 commit comments