mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
ci: Add CI jobs for KVM SEV-SNP
Add build and clippy jobs for kvm+sev_snp+igvm+fw_cfg feature combination. Signed-off-by: Keith Adler <kadler@cloudflare.com> Signed-off-by: Ruben Hakobyan <hruben@meta.com>
This commit is contained in:
committed by
Rob Bradford
parent
d5179a73c2
commit
ea2df946f6
@@ -64,6 +64,9 @@ jobs:
|
|||||||
- name: Build (sev_snp)
|
- name: Build (sev_snp)
|
||||||
run: cargo build --locked --bin cloud-hypervisor --no-default-features --features "sev_snp"
|
run: cargo build --locked --bin cloud-hypervisor --no-default-features --features "sev_snp"
|
||||||
|
|
||||||
|
- name: Build (kvm + igvm + sev_snp + fw_cfg)
|
||||||
|
run: cargo build --locked --bin cloud-hypervisor --no-default-features --features "kvm,igvm,sev_snp,fw_cfg"
|
||||||
|
|
||||||
- name: Build (igvm)
|
- name: Build (igvm)
|
||||||
run: cargo build --locked --bin cloud-hypervisor --no-default-features --features "igvm"
|
run: cargo build --locked --bin cloud-hypervisor --no-default-features --features "igvm"
|
||||||
|
|
||||||
|
|||||||
@@ -146,6 +146,26 @@ jobs:
|
|||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --locked --all --all-targets --no-default-features --tests --examples --features "tdx,kvm" -- -D warnings
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "tdx,kvm" -- -D warnings
|
||||||
|
|
||||||
|
- name: Clippy (kvm + igvm + sev_snp + fw_cfg)
|
||||||
|
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
||||||
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
with:
|
||||||
|
command: clippy
|
||||||
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
|
toolchain: ${{ matrix.rust }}
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
args: --locked --all --all-targets --no-default-features --tests --examples --features "kvm,igvm,sev_snp,fw_cfg" -- -D warnings
|
||||||
|
|
||||||
|
- name: Clippy (default features + sev_snp + igvm + fw_cfg)
|
||||||
|
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
|
||||||
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
|
with:
|
||||||
|
command: clippy
|
||||||
|
cross-version: 3e0957637b49b1bbced23ad909170650c5b70635
|
||||||
|
toolchain: ${{ matrix.rust }}
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
args: --locked --all --all-targets --tests --examples --features "sev_snp,igvm,fw_cfg" -- -D warnings
|
||||||
|
|
||||||
- name: Check build did not modify any files
|
- name: Check build did not modify any files
|
||||||
run: test -z "$(git status --porcelain)"
|
run: test -z "$(git status --porcelain)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user