Skip to content

Commit b1255e9

Browse files
committed
Support Azure Linux3 in Rust workflow
Signed-off-by: Simon Davies <[email protected]>
1 parent e9ef6fa commit b1255e9

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/dep_rust.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ jobs:
2626
strategy:
2727
fail-fast: true
2828
matrix:
29-
hypervisor: [hyperv, mshv, kvm] # hyperv is windows, mshv and kvm are linux
29+
hypervisor: [hyperv, mshv, mshv3, kvm] # hyperv is windows, mshv and kvm are linux
3030
cpu: [amd, intel]
3131
config: [debug, release]
3232

33-
runs-on: ${{ fromJson(format('["self-hosted", "{0}", "X64", "1ES.Pool=hld-{1}-{2}"]', matrix.hypervisor == 'hyperv' && 'Windows' || 'Linux', matrix.hypervisor == 'hyperv' && 'win2022' || matrix.hypervisor, matrix.cpu)) }}
33+
runs-on: ${{ fromJson(
34+
format('["self-hosted", "{0}", "X64", "1ES.Pool=hld-{1}-{2}"]',
35+
matrix.hypervisor == 'hyperv' && 'Windows' || 'Linux',
36+
matrix.hypervisor == 'hyperv' && 'win2022' || matrix.hypervisor == 'mshv3' && 'azlinux3-mshv' || matrix.hypervisor,
37+
matrix.cpu)) }}
3438
steps:
3539
- uses: actions/checkout@v4
3640

@@ -75,10 +79,10 @@ jobs:
7579
CARGO_TERM_COLOR: always
7680
run: |
7781
# with default features
78-
just test-rust ${{ matrix.config }}
82+
just test-rust ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}
7983
8084
# with only one driver enabled (driver mshv/kvm feature is ignored on windows) + seccomp + inprocess
81-
just test-rust ${{ matrix.config }} inprocess,seccomp,${{ matrix.hypervisor == 'mshv' && 'mshv' || 'kvm' }}
85+
just test-rust ${{ matrix.config }} inprocess,seccomp,${{ matrix.hypervisor == 'mshv' && 'mshv2' || matrix.hypervisor == 'mshv3' && 'mshv3' || 'kvm' }}
8286
8387
# make sure certain cargo features compile
8488
cargo check -p hyperlight-host --features crashdump
@@ -100,7 +104,7 @@ jobs:
100104
env:
101105
CARGO_TERM_COLOR: always
102106
RUST_LOG: debug
103-
run: just run-rust-examples-linux ${{ matrix.config }}
107+
run: just run-rust-examples-linux ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}
104108

105109
### Benchmarks ###
106110
- name: Install github-cli (Linux mariner)
@@ -120,5 +124,5 @@ jobs:
120124

121125
- name: Run benchmarks
122126
run: |
123-
just bench-ci main ${{ matrix.config }}
127+
just bench-ci main ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}
124128
if: ${{ matrix.config == 'release' }}

0 commit comments

Comments
 (0)