Skip to content

Commit

Permalink
Merge pull request #296 from hermit-os/microvm-ci
Browse files Browse the repository at this point in the history
ci: test QEMU microvm
  • Loading branch information
mkroening authored Feb 8, 2024
2 parents d8f161e + 6021656 commit af1768f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ jobs:
run: cargo xtask ci qemu --target ${{ matrix.target }}
- name: Run VM (hello_world, release)
run: cargo xtask ci qemu --target ${{ matrix.target }} --release
- name: Run VM (hello_world-microvm, dev)
if: matrix.target == 'x86_64' && matrix.os == 'ubuntu-latest'
run: cargo xtask ci qemu --target ${{ matrix.target }} --image hello_world-microvm --microvm
- name: Run VM (hello_world-microvm, release)
if: matrix.target == 'x86_64' && matrix.os == 'ubuntu-latest'
run: cargo xtask ci qemu --target ${{ matrix.target }} --image hello_world-microvm --microvm --release
- name: Run VM (hello_c, dev)
if: matrix.target == 'x86_64'
run: cargo xtask ci qemu --target ${{ matrix.target }} --image hello_c
Expand Down Expand Up @@ -117,11 +123,15 @@ jobs:
run: cargo xtask ci qemu --target x86_64 --accel
- name: Run QEMU (hello_world, release)
run: cargo xtask ci qemu --target x86_64 --accel --release
- name: Run QEMU (hello_world-microvm, dev)
run: cargo xtask ci qemu --target x86_64 --accel --image hello_world-microvm --microvm
- name: Run QEMU (hello_world-microvm, release)
run: cargo xtask ci qemu --target x86_64 --accel --image hello_world-microvm --microvm --release
- name: Run UEFI (dev)
run: cargo xtask ci qemu --target x86_64-uefi --accel
- name: Run UEFI (release)
run: cargo xtask ci qemu --target x86_64-uefi --accel --release
- name: Run Firecracker (hello_world, dev)
run: cargo xtask ci firecracker --target x86_64-fc --features fc
run: cargo xtask ci firecracker --target x86_64-fc --features fc --image hello_world-microvm
- name: Run Firecracker (hello_world, release)
run: cargo xtask ci firecracker --target x86_64-fc --features fc --release
run: cargo xtask ci firecracker --target x86_64-fc --features fc --image hello_world-microvm --release
File renamed without changes.
2 changes: 1 addition & 1 deletion xtask/src/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ impl Artifact {
}

pub fn ci_image(&self, image: &str) -> PathBuf {
["data", self.target.name(), image].iter().collect()
["data", self.target.arch(), image].iter().collect()
}
}

0 comments on commit af1768f

Please sign in to comment.