-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is broken due to the init script spawning qemu-ga which fails under the nix flake environment TODO: - separate vmtests infra in a different file - add more kernels
- Loading branch information
1 parent
f8da16a
commit 79e20c8
Showing
3 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: vmtests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
vmtests: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: Install system deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y qemu-system-x86-64 qemu-guest-agent qemu-utils ovmf | ||
- name: Set up nix dev env | ||
run: nix develop --command echo 0 | ||
|
||
- name: Build `lightswitch` statically linked using glibc | ||
run: nix develop --command bash -c 'RUSTFLAGS="-C target-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-gnu' | ||
|
||
- name: Run vmtests | ||
run: nix develop --command run-vmtests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/target | ||
flame.svg | ||
src/bpf/*_skel.rs | ||
.vmtest.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters