1010 CARGO_TERM_COLOR : always
1111
1212jobs :
13+ # Regular build (with std) + test execution
1314 build :
1415 runs-on : ubuntu-latest
1516 strategy :
1920 - nightly
2021 - 1.52.1 # MSVR
2122 steps :
22- - uses : actions/checkout@v2
23+ - uses : actions/checkout@v3
2324 # Important preparation step: override the latest default Rust version in GitHub CI
2425 # with the current value of the iteration in the "strategy.matrix.rust"-array.
2526 - uses : actions-rs/toolchain@v1
@@ -30,10 +31,11 @@ jobs:
3031 # helps to identify if the right cargo version is actually used
3132 - run : cargo version
3233 - name : Build
33- run : cargo build --verbose
34+ run : cargo build --all-targets -- verbose
3435 - name : Run tests
3536 run : cargo test --verbose
3637
38+ # no-std build without tests
3739 build_no_std :
3840 runs-on : ubuntu-latest
3941 strategy :
4345 - nightly
4446 - 1.52.1 # MSVR
4547 steps :
46- - uses : actions/checkout@v2
48+ - uses : actions/checkout@v3
4749 # Important preparation step: override the latest default Rust version in GitHub CI
4850 # with the current value of the iteration in the "strategy.matrix.rust"-array.
4951 - uses : actions-rs/toolchain@v1
5860 - name : Build (no_std)
5961 run : cargo build --target thumbv7em-none-eabihf
6062
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
6183
6284 # As discussed, these tasks are optional for PRs.
6385 style_checks :
6789 rust :
6890 - 1.52.1 # MSVR
6991 steps :
70- - uses : actions/checkout@v2
92+ - uses : actions/checkout@v3
7193 # Important preparation step: override the latest default Rust version in GitHub CI
7294 # with the current value of the iteration in the "strategy.matrix.rust"-array.
7395 - uses : actions-rs/toolchain@v1
80102 - name : Rustfmt
81103 run : cargo fmt -- --check
82104 - name : Clippy
83- run : cargo clippy
105+ run : cargo clippy --all-targets
84106 - name : Rustdoc
85- run : cargo doc
107+ run : cargo doc --document-private-items
0 commit comments