Skip to content

Commit 35c26ff

Browse files
authored
Merge pull request #19 from hyperlight-dev/ci-unique-umbrella-names
ci: unique umbrella job names for branch protection
2 parents 9d37a86 + b59826c commit 35c26ff

3 files changed

Lines changed: 44 additions & 5 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,16 @@ jobs:
329329
with:
330330
workspaces: host -> target
331331

332+
- name: Ensure surrogate build consistency
333+
shell: pwsh
334+
run: |
335+
$hlsExe = "host\target\release\build\hyperlight-host-*\out\..\..\hls\x86_64-pc-windows-msvc\release\hyperlight_surrogate.exe"
336+
if (-not (Resolve-Path $hlsExe -ErrorAction SilentlyContinue)) {
337+
Write-Host "Surrogate missing — clearing hyperlight-host fingerprints to force rebuild"
338+
Get-ChildItem "host\target\release\.fingerprint" -Filter "hyperlight-host-*" -Directory -ErrorAction SilentlyContinue |
339+
Remove-Item -Recurse -Force
340+
}
341+
332342
- name: Install pyhl
333343
shell: pwsh
334344
run: |
@@ -516,7 +526,7 @@ jobs:
516526
comment-always: true
517527
alert-threshold: '130%'
518528

519-
all-checks-passed:
529+
benchmarks-passed:
520530
if: always()
521531
needs: [build-image, bench-linux, bench-windows]
522532
runs-on: ubuntu-latest

.github/workflows/host-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
RUST_BACKTRACE: '1'
7979
run: cargo test --all-targets --locked
8080

81-
all-checks-passed:
81+
host-checks-passed:
8282
if: always()
8383
needs: [checks]
8484
runs-on: ubuntu-latest

.github/workflows/test-examples.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,16 @@ jobs:
556556
with:
557557
workspaces: host -> target
558558

559+
- name: Ensure surrogate build consistency
560+
shell: pwsh
561+
run: |
562+
$hlsExe = "host\target\release\build\hyperlight-host-*\out\..\..\hls\x86_64-pc-windows-msvc\release\hyperlight_surrogate.exe"
563+
if (-not (Resolve-Path $hlsExe -ErrorAction SilentlyContinue)) {
564+
Write-Host "Surrogate missing — clearing hyperlight-host fingerprints to force rebuild"
565+
Get-ChildItem "host\target\release\.fingerprint" -Filter "hyperlight-host-*" -Directory -ErrorAction SilentlyContinue |
566+
Remove-Item -Recurse -Force
567+
}
568+
559569
- name: Build host binaries
560570
shell: pwsh
561571
run: |
@@ -662,6 +672,17 @@ jobs:
662672
with:
663673
workspaces: host -> target
664674

675+
- name: Ensure surrogate build consistency (Windows only)
676+
if: runner.os == 'Windows'
677+
shell: pwsh
678+
run: |
679+
$hlsExe = "host\target\release\build\hyperlight-host-*\out\..\..\hls\x86_64-pc-windows-msvc\release\hyperlight_surrogate.exe"
680+
if (-not (Resolve-Path $hlsExe -ErrorAction SilentlyContinue)) {
681+
Write-Host "Surrogate missing — clearing hyperlight-host fingerprints to force rebuild"
682+
Get-ChildItem "host\target\release\.fingerprint" -Filter "hyperlight-host-*" -Directory -ErrorAction SilentlyContinue |
683+
Remove-Item -Recurse -Force
684+
}
685+
665686
# Linux needs /dev/kvm access to run the guest.
666687
- name: Enable KVM permissions (Linux only)
667688
if: runner.os == 'Linux'
@@ -683,12 +704,20 @@ jobs:
683704
echo "::warning::/dev/kvm is not available; pyhl test skipped"
684705
fi
685706
686-
- name: Install pyhl
707+
- name: Install pyhl (Linux)
708+
if: runner.os == 'Linux'
709+
run: |
710+
cd host
711+
cargo build --release --bin pyhl
712+
sudo cp target/release/pyhl /usr/local/bin/
713+
714+
- name: Install pyhl (Windows)
715+
if: runner.os == 'Windows'
687716
shell: pwsh
688717
run: |
689718
cd host
690719
cargo build --release --bin pyhl
691-
Copy-Item target/release/pyhl* $env:USERPROFILE/.cargo/bin/ -Force
720+
Copy-Item target\release\pyhl.exe $env:USERPROFILE\.cargo\bin\ -Force
692721
693722
- name: Download prebuilt python-agent-driver image
694723
uses: actions/download-artifact@v4
@@ -768,7 +797,7 @@ jobs:
768797
exit 1
769798
}
770799
771-
all-checks-passed:
800+
test-examples-passed:
772801
if: always()
773802
needs: [build-example, runtime-test, package-images-for-windows, runtime-test-windows, pyhl-snapshot-test]
774803
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)