File tree Expand file tree Collapse file tree 1 file changed +41
-12
lines changed Expand file tree Collapse file tree 1 file changed +41
-12
lines changed Original file line number Diff line number Diff line change 88 types : [checks_requested]
99
1010jobs :
11- ci :
11+ build-and-test :
1212 name : CI
1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- version : [stable, beta, nightly ]
16+ version : [stable, beta]
1717 steps :
1818 - uses : actions/checkout@v4
1919
@@ -25,22 +25,48 @@ jobs:
2525 - name : Init submodules
2626 run : git submodule update --init
2727
28- - name : Cargo bench
29- run : cargo bench --all
30- env :
31- RUSTFLAGS : --cfg bench
28+ - name : Cargo build
29+ run : cargo build --all
3230
3331 - name : Cargo test
34- if : matrix.version != 'nightly'
3532 run : cargo test --all
3633
3734 - name : Test tendril w/encoding feature
38- if : matrix.version != 'nightly'
3935 run : cargo test -p tendril --features 'encoding encoding_rs'
4036
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 --bench tendril -- --quick --significance-level 0.01
65+ env :
66+ RUSTFLAGS : --cfg bench
67+ - run : cargo bench -p tendril --bench futf -- --quick --significance-level 0.01
68+ env :
69+ RUSTFLAGS : --cfg bench
4470
4571 msrv :
4672 name : MSRV
@@ -83,9 +109,12 @@ jobs:
83109 name : Result
84110 runs-on : ubuntu-latest
85111 needs :
86- - ci
112+ - build-and-test
113+ - doc
87114 - lint
88115 - msrv
116+ - bench-html5ever
117+ - bench-tendril
89118
90119 steps :
91120 - name : Success
You can’t perform that action at this time.
0 commit comments