Skip to content

Commit 0196e04

Browse files
committed
ci: test multiboot2 unstable feature
1 parent 9b37f56 commit 0196e04

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/rust.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13+
# Regular build (with std) + test execution
1314
build:
1415
runs-on: ubuntu-latest
1516
strategy:
@@ -19,7 +20,7 @@ jobs:
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:
@@ -43,7 +45,7 @@ jobs:
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
@@ -58,6 +60,26 @@ jobs:
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:
@@ -67,7 +89,7 @@ jobs:
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

0 commit comments

Comments
 (0)