30
30
uses : taiki-e/install-action@cross
31
31
32
32
- name : Build
33
- run : cross build --all-features --all-targets --release --target=${{ matrix.target }}
33
+ run : cross build --all-features --release --target=${{ matrix.target }}
34
+
35
+ build-examples :
36
+ name : Build Examples
37
+ runs-on : ubuntu-latest
38
+ needs : [lints, docs]
39
+ env :
40
+ RUSTFLAGS : " -D warnings"
41
+ steps :
42
+ - name : Checkout sources
43
+ uses : actions/checkout@v4
44
+
45
+ - name : Install stable toolchain
46
+ uses : dtolnay/rust-toolchain@stable
47
+
48
+ - name : Build
49
+ run : cargo build --examples --all-features --release
34
50
35
51
test :
36
52
name : Test Suite
45
61
- name : Install stable toolchain
46
62
uses : dtolnay/rust-toolchain@stable
47
63
48
- # - uses: Swatinem/rust-cache@v1
49
-
50
64
- name : Run cargo test
51
65
run : cargo test -- --test-threads 1
52
66
66
80
- name : Install cargo-msrv
67
81
run : cargo binstall --version 0.16.0-beta.17 --no-confirm cargo-msrv
68
82
69
- # - uses: Swatinem/rust-cache@v1
70
-
71
83
- name : Check MSRV
72
84
run : cargo msrv verify --log-target=stdout --output-format=json
73
85
@@ -185,8 +197,6 @@ jobs:
185
197
- name : Install nightly toolchain
186
198
uses : dtolnay/rust-toolchain@nightly
187
199
188
- # - uses: Swatinem/rust-cache@v1
189
-
190
200
- name : Build
191
201
env :
192
202
RUSTFLAGS : " -Z sanitizer=address"
@@ -205,7 +215,7 @@ jobs:
205
215
runs-on : ubuntu-latest
206
216
environment : production
207
217
if : github.event_name == 'release'
208
- needs : [build, test, msrv, lints, docs, leaks, semver, min-versions, min-versions-msrv]
218
+ needs : [build, build-examples, test, msrv, lints, docs, leaks, semver, min-versions, min-versions-msrv]
209
219
steps :
210
220
- name : Checkout sources
211
221
uses : actions/checkout@v4
0 commit comments