Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,16 @@ jobs:
with:
workspaces: host -> target

- name: Ensure surrogate build consistency
shell: pwsh
run: |
$hlsExe = "host\target\release\build\hyperlight-host-*\out\..\..\hls\x86_64-pc-windows-msvc\release\hyperlight_surrogate.exe"
if (-not (Resolve-Path $hlsExe -ErrorAction SilentlyContinue)) {
Write-Host "Surrogate missing — clearing hyperlight-host fingerprints to force rebuild"
Get-ChildItem "host\target\release\.fingerprint" -Filter "hyperlight-host-*" -Directory -ErrorAction SilentlyContinue |
Remove-Item -Recurse -Force
}

- name: Install pyhl
shell: pwsh
run: |
Expand Down Expand Up @@ -516,7 +526,7 @@ jobs:
comment-always: true
alert-threshold: '130%'

all-checks-passed:
benchmarks-passed:
if: always()
needs: [build-image, bench-linux, bench-windows]
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/host-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
RUST_BACKTRACE: '1'
run: cargo test --all-targets --locked

all-checks-passed:
host-checks-passed:
if: always()
needs: [checks]
runs-on: ubuntu-latest
Expand Down
35 changes: 32 additions & 3 deletions .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,16 @@ jobs:
with:
workspaces: host -> target

- name: Ensure surrogate build consistency
shell: pwsh
run: |
$hlsExe = "host\target\release\build\hyperlight-host-*\out\..\..\hls\x86_64-pc-windows-msvc\release\hyperlight_surrogate.exe"
if (-not (Resolve-Path $hlsExe -ErrorAction SilentlyContinue)) {
Write-Host "Surrogate missing — clearing hyperlight-host fingerprints to force rebuild"
Get-ChildItem "host\target\release\.fingerprint" -Filter "hyperlight-host-*" -Directory -ErrorAction SilentlyContinue |
Remove-Item -Recurse -Force
}

- name: Build host binaries
shell: pwsh
run: |
Expand Down Expand Up @@ -662,6 +672,17 @@ jobs:
with:
workspaces: host -> target

- name: Ensure surrogate build consistency (Windows only)
if: runner.os == 'Windows'
shell: pwsh
run: |
$hlsExe = "host\target\release\build\hyperlight-host-*\out\..\..\hls\x86_64-pc-windows-msvc\release\hyperlight_surrogate.exe"
if (-not (Resolve-Path $hlsExe -ErrorAction SilentlyContinue)) {
Write-Host "Surrogate missing — clearing hyperlight-host fingerprints to force rebuild"
Get-ChildItem "host\target\release\.fingerprint" -Filter "hyperlight-host-*" -Directory -ErrorAction SilentlyContinue |
Remove-Item -Recurse -Force
}

# Linux needs /dev/kvm access to run the guest.
- name: Enable KVM permissions (Linux only)
if: runner.os == 'Linux'
Expand All @@ -683,12 +704,20 @@ jobs:
echo "::warning::/dev/kvm is not available; pyhl test skipped"
fi

- name: Install pyhl
- name: Install pyhl (Linux)
if: runner.os == 'Linux'
run: |
cd host
cargo build --release --bin pyhl
sudo cp target/release/pyhl /usr/local/bin/

- name: Install pyhl (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
cd host
cargo build --release --bin pyhl
Copy-Item target/release/pyhl* $env:USERPROFILE/.cargo/bin/ -Force
Copy-Item target\release\pyhl.exe $env:USERPROFILE\.cargo\bin\ -Force

- name: Download prebuilt python-agent-driver image
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -768,7 +797,7 @@ jobs:
exit 1
}

all-checks-passed:
test-examples-passed:
if: always()
needs: [build-example, runtime-test, package-images-for-windows, runtime-test-windows, pyhl-snapshot-test]
runs-on: ubuntu-latest
Expand Down
Loading