Skip to content

Commit 8d68abc

Browse files
committed
Switch to using Hyperlight CI runner images
Previously, the CI checks that cargo-hyperlight can actually build a guest ran on the GH hosted runner ubuntu-latest, which are poorly-specified and not particularly reflective of the environments where cargo-hyperlight is actually called upon. Switch to using the same images that we do for Hyperlight CI. Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent db1ae83 commit 8d68abc

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ jobs:
2424
name: Run tests on ${{ matrix.os }}
2525
strategy:
2626
matrix:
27-
os: ["ubuntu-latest", "windows-latest"]
28-
runs-on: ${{ matrix.os }}
27+
hypervisor: ["hyperv-ws2025", "kvm"]
28+
cpu: ["amd"]
29+
config: ["debug"]
30+
runs-on: ${{ fromJson(
31+
format('["self-hosted", "{0}", "X64", "1ES.Pool=hld-{1}-{2}", "JobId=cargo-hyperlight-{3}-{4}-{5}"]',
32+
matrix.hypervisor == 'hyperv-ws2025' && 'Windows' || 'Linux',
33+
matrix.hypervisor == 'hyperv-ws2025' && 'win2025' || matrix.hypervisor == 'mshv3' && 'azlinux3-mshv' || matrix.hypervisor,
34+
matrix.cpu,
35+
github.run_id,
36+
github.run_number,
37+
github.run_attempt)) }}
2938
steps:
3039
- uses: actions/checkout@v7
3140
- uses: actions-rust-lang/setup-rust-toolchain@v1
3241
- uses: Swatinem/rust-cache@v2
3342
- uses: extractions/setup-just@v4
34-
- name: Enable kvm
35-
if: runner.os == 'Linux' && runner.arch == 'X64'
36-
run: |
37-
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
38-
sudo udevadm control --reload-rules
39-
sudo udevadm trigger --name-match=kvm
4043
- name: Install cargo-hyperlight
4144
shell: bash
4245
run: just install

0 commit comments

Comments
 (0)