10
10
CARGO_TERM_COLOR : always
11
11
12
12
jobs :
13
+ # Regular build (with std) + test execution
13
14
build :
14
15
runs-on : ubuntu-latest
15
16
strategy :
19
20
- nightly
20
21
- 1.52.1 # MSVR
21
22
steps :
22
- - uses : actions/checkout@v2
23
+ - uses : actions/checkout@v3
23
24
# Important preparation step: override the latest default Rust version in GitHub CI
24
25
# with the current value of the iteration in the "strategy.matrix.rust"-array.
25
26
- uses : actions-rs/toolchain@v1
@@ -30,10 +31,11 @@ jobs:
30
31
# helps to identify if the right cargo version is actually used
31
32
- run : cargo version
32
33
- name : Build
33
- run : cargo build --verbose
34
+ run : cargo build --all-targets -- verbose
34
35
- name : Run tests
35
36
run : cargo test --verbose
36
37
38
+ # no-std build without tests
37
39
build_no_std :
38
40
runs-on : ubuntu-latest
39
41
strategy :
43
45
- nightly
44
46
- 1.52.1 # MSVR
45
47
steps :
46
- - uses : actions/checkout@v2
48
+ - uses : actions/checkout@v3
47
49
# Important preparation step: override the latest default Rust version in GitHub CI
48
50
# with the current value of the iteration in the "strategy.matrix.rust"-array.
49
51
- uses : actions-rs/toolchain@v1
58
60
- name : Build (no_std)
59
61
run : cargo build --target thumbv7em-none-eabihf
60
62
63
+ # Tests that the unstable feature, which requires nightly, builds.
64
+ build_unstable :
65
+ runs-on : ubuntu-latest
66
+ strategy :
67
+ matrix :
68
+ rust :
69
+ - nightly
70
+ steps :
71
+ - uses : actions/checkout@v3
72
+ # Important preparation step: override the latest default Rust version in GitHub CI
73
+ # with the current value of the iteration in the "strategy.matrix.rust"-array.
74
+ - uses : actions-rs/toolchain@v1
75
+ with :
76
+ profile : default
77
+ toolchain : ${{ matrix.rust }}
78
+ override : true
79
+ - name : Build (unstable)
80
+ run : cargo build --all-targets --features unstable
81
+ - name : Test (unstable)
82
+ run : cargo test --all-targets --features unstable
61
83
62
84
# As discussed, these tasks are optional for PRs.
63
85
style_checks :
67
89
rust :
68
90
- 1.52.1 # MSVR
69
91
steps :
70
- - uses : actions/checkout@v2
92
+ - uses : actions/checkout@v3
71
93
# Important preparation step: override the latest default Rust version in GitHub CI
72
94
# with the current value of the iteration in the "strategy.matrix.rust"-array.
73
95
- uses : actions-rs/toolchain@v1
0 commit comments