File tree Expand file tree Collapse file tree 3 files changed +95
-72
lines changed Expand file tree Collapse file tree 3 files changed +95
-72
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Rust CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+ schedule :
9
+ - cron : ' 5 16 * * 6'
10
+
11
+ jobs :
12
+ main :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : dtolnay/rust-toolchain@stable
17
+ - name : Cache Cargo Dependencies
18
+ uses : Swatinem/rust-cache@v2
19
+ with :
20
+ cache-on-failure : true
21
+ - name : build
22
+ run : cargo build
23
+ - name : test
24
+ run : cargo test
25
+
26
+ nightly :
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - uses : actions/checkout@v4
30
+ - uses : dtolnay/rust-toolchain@nightly
31
+ - name : Cache Cargo Dependencies
32
+ uses : Swatinem/rust-cache@v2
33
+ with :
34
+ cache-on-failure : true
35
+ - name : build
36
+ run : cargo build --all-features
37
+ - name : test
38
+ run : cargo test --all-features
39
+
40
+ miri :
41
+ runs-on : ubuntu-latest
42
+ needs : [main]
43
+ strategy :
44
+ fail-fast : false
45
+ matrix :
46
+ crate : ['alloc-traits', 'static-alloc', 'unsize', 'without-alloc' ]
47
+ steps :
48
+ - uses : actions/checkout@v4
49
+ - uses : dtolnay/rust-toolchain@nightly
50
+ - name : Install Miri
51
+ run : rustup component add --toolchain nightly miri
52
+ - name : Miri Test
53
+ run : |
54
+ cd ${{ matrix.crate }}
55
+ rustup run nightly cargo miri test --all-features
56
+
57
+ doc :
58
+ runs-on : ubuntu-latest
59
+ needs : [main]
60
+ steps :
61
+ - uses : actions/checkout@v4
62
+ - uses : dtolnay/rust-toolchain@nightly
63
+ - name : Cache Cargo Dependencies
64
+ uses : Swatinem/rust-cache@v2
65
+ with :
66
+ cache-on-failure : true
67
+ - name : Generate Documentation
68
+ run : |
69
+ cargo doc --no-deps --document-private-items --all-features
Original file line number Diff line number Diff line change
1
+ name : Rust CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request_target :
7
+ branches : [
8
+ ' release/*/v*'
9
+ ]
10
+
11
+ jobs :
12
+ check :
13
+ runs-on : ubuntu-latest
14
+ container :
15
+ image : rust:latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Cache Cargo Dependencies
19
+ uses : Swatinem/rust-cache@v2
20
+ with :
21
+ cache-on-failure : true
22
+ - name : Check semver
23
+ uses : obi1kenobi/cargo-semver-checks-action@v2
24
+ with :
25
+ package : alloc-traits, static-alloc, unsize, without-alloc
26
+ rust-toolchain : manual
You can’t perform that action at this time.
0 commit comments