Skip to content

Commit 6968dbd

Browse files
committed
ci
1 parent c3d486c commit 6968dbd

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,23 @@ jobs:
2222
with:
2323
rust-version: 1.56.1
2424
do-style-check: false
25+
features: builder
2526

2627
build_stable:
2728
name: build (stable)
2829
uses: ./.github/workflows/_build-rust.yml
2930
with:
3031
rust-version: stable
3132
do-style-check: false
33+
features: builder
3234

3335
build_nightly:
3436
name: build (nightly)
3537
uses: ./.github/workflows/_build-rust.yml
3638
with:
3739
rust-version: nightly
3840
do-style-check: false
39-
features: unstable
41+
features: builder unstable
4042

4143
### no-std Build #########################
4244
build_nostd_msrv:
@@ -47,6 +49,7 @@ jobs:
4749
rust-version: 1.56.1
4850
do-style-check: false
4951
rust-target: thumbv7em-none-eabihf
52+
features: builder
5053

5154
build_nostd_stable:
5255
name: build no_std (stable)
@@ -56,18 +59,17 @@ jobs:
5659
rust-version: stable
5760
do-style-check: false
5861
rust-target: thumbv7em-none-eabihf
62+
features: builder
5963

60-
# I do this only once. If the builder feature works in this case, it will most
61-
# likely also build in the other cases.
62-
build_nostd_stable_builder:
64+
# Also tests the build one time without the "builder" feature.
65+
build_nostd_stable_no_builder:
6366
name: build no_std (stable)
6467
needs: build_stable
6568
uses: ./.github/workflows/_build-rust.yml
6669
with:
6770
rust-version: stable
6871
do-style-check: false
6972
rust-target: thumbv7em-none-eabihf
70-
features: builder
7173

7274
# We perform one single run also in Windows. This should be sufficient to
7375
# check that devs can also use this on Windows.
@@ -77,11 +79,12 @@ jobs:
7779
with:
7880
runs-on: windows-latest
7981
# Quirk for the Windows powershell and its handling of empty arguments.
80-
features: >
81-
'""'
82+
# features: >
83+
# '""'
8284
rust-version: stable
8385
do-style-check: false
8486
rust-target: thumbv7em-none-eabihf
87+
features: builder
8588

8689
build_nostd_nightly:
8790
name: build no_std (nightly)
@@ -91,7 +94,7 @@ jobs:
9194
rust-version: nightly
9295
do-style-check: false
9396
rust-target: thumbv7em-none-eabihf
94-
features: unstable
97+
features: builder unstable
9598

9699
### Style Checks + Doc #####################
97100
style_msrv:

multiboot2-header/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ homepage = "https://github.com/rust-osdev/multiboot2-header"
2727
repository = "https://github.com/rust-osdev/multiboot2"
2828
documentation = "https://docs.rs/multiboot2-header"
2929

30+
[[example]]
31+
name = "minimal"
32+
required-features = ["builder"]
33+
3034
[features]
3135
default = ["builder"]
3236
alloc = []

0 commit comments

Comments
 (0)