Skip to content

Commit ddd016c

Browse files
committed
ci: add hw-interrupts test step to CI and Justfile
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent ab1373d commit ddd016c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/dep_build_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ jobs:
105105
# with only one driver enabled (kvm/mshv3 features are unix-only, no-op on Windows)
106106
just test ${{ inputs.config }} ${{ inputs.hypervisor == 'mshv3' && 'mshv3' || 'kvm' }}
107107
108+
- name: Run Rust tests with hw-interrupts
109+
run: |
110+
# with hw-interrupts feature enabled (+ explicit driver on Linux)
111+
just test ${{ inputs.config }} ${{ runner.os == 'Linux' && (inputs.hypervisor == 'mshv3' && 'mshv3,hw-interrupts' || 'kvm,hw-interrupts') || 'hw-interrupts' }}
112+
108113
- name: Run Rust Gdb tests
109114
env:
110115
RUST_LOG: debug

Justfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ test-like-ci config=default-target hypervisor="kvm":
8787
@# with only one driver enabled + build-metadata + init-paging
8888
just test {{config}} build-metadata,init-paging,{{ if hypervisor == "mshv3" {"mshv3"} else {"kvm"} }}
8989

90+
@# with hw-interrupts enabled (+ explicit driver on Linux)
91+
{{ if os() == "linux" { if hypervisor == "mshv3" { "just test " + config + " mshv3,hw-interrupts" } else { "just test " + config + " kvm,hw-interrupts" } } else { "just test " + config + " hw-interrupts" } }}
92+
9093
@# make sure certain cargo features compile
9194
just check
9295

@@ -151,6 +154,9 @@ build-test-like-ci config=default-target hypervisor="kvm":
151154
@# Run Rust tests with single driver
152155
{{ if os() == "linux" { "just test " + config+ " " + if hypervisor == "mshv3" { "mshv3" } else { "kvm" } } else { "" } }}
153156

157+
@# Run Rust tests with hw-interrupts
158+
{{ if os() == "linux" { if hypervisor == "mshv3" { "just test " + config + " mshv3,hw-interrupts" } else { "just test " + config + " kvm,hw-interrupts" } } else { "just test " + config + " hw-interrupts" } }}
159+
154160
@# Run Rust Gdb tests
155161
just test-rust-gdb-debugging {{config}}
156162

@@ -282,6 +288,7 @@ check:
282288
{{ cargo-cmd }} check -p hyperlight-host --features print_debug {{ target-triple-flag }}
283289
{{ cargo-cmd }} check -p hyperlight-host --features gdb {{ target-triple-flag }}
284290
{{ cargo-cmd }} check -p hyperlight-host --features trace_guest,mem_profile {{ target-triple-flag }}
291+
{{ cargo-cmd }} check -p hyperlight-host --features hw-interrupts {{ target-triple-flag }}
285292

286293
fmt-check:
287294
rustup +nightly component list | grep -q "rustfmt.*installed" || rustup component add rustfmt --toolchain nightly

0 commit comments

Comments
 (0)