Skip to content

Commit acb91b9

Browse files
committed
Build and upload readonly version of UEFI app
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 1f5c346 commit acb91b9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,17 @@ jobs:
7777
run: rustup show
7878

7979
- name: Build UEFI application (no ESP)
80-
run: make -C framework_uefi build/x86_64-unknown-uefi/boot.efi
80+
run: |
81+
make -C framework_uefi build/x86_64-unknown-uefi/boot.efi
82+
mv framework_uefi/build/x86_64-unknown-uefi/boot.efi framework_tool_full.efi
83+
make -C framework_uefi FEATURES=readonly build/x86_64-unknown-uefi/boot.efi
84+
cp framework_uefi/build/x86_64-unknown-uefi/boot.efi framework_tool.efi
8185
8286
- name: Upload UEFI App
8387
uses: actions/upload-artifact@v4
8488
with:
85-
name: framework.efi
86-
path: framework_uefi/build/x86_64-unknown-uefi/boot.efi
89+
name: framework_efi.zip
90+
path: ./*.efi
8791

8892
- name: Install mtools to build ESP and ISO (Linux)
8993
run: sudo apt-get install -y mtools genisoimage

framework_uefi/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
TARGET?=x86_64-unknown-uefi
22
BUILD=build/$(TARGET)
3+
FEATURES?=''
34

45
SRC_DIR=.
56

@@ -18,7 +19,7 @@ all: $(BUILD)/boot.img
1819
iso: $(BUILD)/UEFI-Shell-fwk.iso
1920

2021
clean:
21-
rm -r $(BUILD)
22+
rm -rf $(BUILD)
2223

2324
qemu: $(BUILD)/boot.img
2425
$(QEMU) $(QEMU_FLAGS) $<
@@ -61,6 +62,7 @@ $(BUILD)/boot.efi: ../Cargo.lock $(SRC_DIR)/Cargo.toml $(SRC_DIR)/src/*
6162
mkdir -p $(BUILD)
6263
cargo rustc \
6364
--target $(TARGET) \
65+
--features $(FEATURES) \
6466
--release \
6567
-- \
6668
--emit link=framework_uefi/$@

0 commit comments

Comments
 (0)