Skip to content

Commit ef7c12f

Browse files
committed
ci: build Standard UEFI binary in CI
1 parent 0a25307 commit ef7c12f

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
@@ -167,3 +167,16 @@ jobs:
167167
run: |
168168
rustup component add miri
169169
cargo xtask miri
170+
# Builds a Rust standard binary using the `std` impl for UEFI, rather than
171+
# creating a `no_std` + `no_main` binary.
172+
build_standard_uefi_binary:
173+
name: Build Standard UEFI Binary (nightly)
174+
runs-on: ubuntu-latest
175+
steps:
176+
- name: Checkout sources
177+
uses: actions/checkout@v4
178+
- name: Set toolchain
179+
run: cp .github/workflows/nightly_toolchain.toml rust-toolchain.toml
180+
- uses: Swatinem/rust-cache@v2
181+
- name: Build
182+
run: cargo +nightly build --target x86_64-unknown-uefi --verbose -p -p uefi-std-example

0 commit comments

Comments
 (0)