Skip to content

Commit 7cd7c1a

Browse files
committed
Build HDMI/DP updater on GH actions
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 7c172be commit 7cd7c1a

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
# path: target/x86_64-unknown-freebsd/debug/framework_tool
4040

4141
build:
42-
name: Build Linux and UEFI
42+
name: Build Linux apps
4343
runs-on: ubuntu-22.04
4444
env:
4545
CARGO_NET_GIT_FETCH_WITH_CLI: true
@@ -59,35 +59,14 @@ jobs:
5959
- name: Setup Rust toolchain
6060
run: rustup show
6161

62-
- name: Build library (Linux)
63-
run: cargo build -p framework_lib
62+
- name: Build tools
63+
run: make
6464

65-
- name: Build Linux tool
66-
run: cargo build -p framework_tool
67-
68-
- name: Check if Linux tool can start
69-
run: cargo run -- --help
70-
71-
- name: Upload Linux App
72-
uses: actions/upload-artifact@v3
73-
with:
74-
name: framework_tool
75-
path: target/debug/framework_tool
76-
77-
- name: Build UEFI application (no ESP)
78-
run: make -C framework_uefi build/x86_64-unknown-uefi/boot.efi
79-
80-
- name: Upload UEFI App
65+
- name: Upload Linux Apps
8166
uses: actions/upload-artifact@v3
8267
with:
83-
name: framework.efi
84-
path: framework_uefi/build/x86_64-unknown-uefi/boot.efi
85-
86-
- name: Install mtools to build ESP (Linux)
87-
run: sudo apt-get install -y mtools
88-
89-
- name: Build ESP (Linux)
90-
run: make -C framework_uefi
68+
name: dp_hdmi
69+
path: out/
9170

9271
build-windows:
9372
name: Build Windows
@@ -105,20 +84,14 @@ jobs:
10584
- name: Setup Rust toolchain
10685
run: rustup show
10786

108-
- name: Build library (Windows)
109-
run: cargo build -p framework_lib --no-default-features --features "windows"
110-
111-
- name: Build Windows tool
112-
run: cargo build -p framework_tool --no-default-features --features "windows"
113-
114-
- name: Check if Windows tool can start
115-
run: cargo run --no-default-features --features "windows" -- --help
87+
- name: Build tools
88+
run: make
11689

117-
- name: Upload Windows App
90+
- name: Upload Windows Apps
11891
uses: actions/upload-artifact@v3
11992
with:
120-
name: framework_tool.exe
121-
path: target/debug/framework_tool.exe
93+
name: dp_hdmi
94+
path: out/
12295

12396

12497
test:

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
all:
2+
mkdir -p out
3+
4+
cargo build --release
5+
-cp -f target/release/framework_tool out/dp_hdmi_version
6+
-cp -f target/release/framework_tool.exe out/dp_hdmi_version.exe
7+
8+
env FWK_DP_HDMI_BIN=dp-flash-008 cargo build --release
9+
-cp target/release/framework_tool out/dp_update_008
10+
-cp target/release/framework_tool.exe out/dp_update_008.exe
11+
12+
env FWK_DP_HDMI_BIN=dp-flash-100 cargo build --release
13+
-cp target/release/framework_tool out/dp_update_100
14+
-cp target/release/framework_tool.exe out/dp_update_100.exe
15+
16+
env FWK_DP_HDMI_BIN=dp-flash-101 cargo build --release
17+
-cp target/release/framework_tool out/dp_update_101
18+
-cp target/release/framework_tool.exe out/dp_update_101.exe
19+
20+
env FWK_DP_HDMI_BIN=hdmi-flash-006 cargo build --release
21+
-cp target/release/framework_tool out/hdmi_update_006
22+
-cp target/release/framework_tool.exe out/hdmi_update_006.exe
23+
24+
env FWK_DP_HDMI_BIN=hdmi-flash-105 cargo build --release
25+
-cp target/release/framework_tool out/hdmi_update_105
26+
-cp target/release/framework_tool.exe out/hdmi_update_105.exe

0 commit comments

Comments
 (0)