Skip to content

Commit c5d5d80

Browse files
committed
ci: build Standard UEFI binary in CI
By standard binary, I refer to a binary using `std`. Thus, not a binary that is no_std + no_main.
1 parent 47aaec7 commit c5d5d80

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/rust.yml

+13
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,16 @@ jobs:
170170
run: |
171171
rustup component add miri
172172
cargo xtask miri
173+
# Builds a Rust standard binary using the `std` impl for UEFI, rather than
174+
# creating a `no_std` + `no_main` binary.
175+
build_standard_uefi_binary:
176+
name: Build Standard Binary (nightly)
177+
runs-on: ubuntu-latest
178+
steps:
179+
- name: Checkout sources
180+
uses: actions/checkout@v4
181+
- name: Set toolchain
182+
run: cp .github/workflows/nightly_toolchain.toml rust-toolchain.toml
183+
- uses: Swatinem/rust-cache@v2
184+
- name: Build
185+
run: cargo +nightly build --target x86_64-unknown-uefi --verbose -p uefi-std-example

0 commit comments

Comments
 (0)