From b9117c9c5048b8520f37abf1e88b98bb3f14cd06 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Wed, 4 Oct 2023 18:28:31 -0700 Subject: [PATCH] github: workflow: Build/quality test for igvm Extend the current github actions to build and test clippy for igvm feature. Signed-off-by: Muminul Islam --- .github/workflows/build.yaml | 3 +++ .github/workflows/quality.yaml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0fd28eba8..52759215a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -54,6 +54,9 @@ jobs: - name: Build (sev_snp) run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "sev_snp" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Build (igvm) + run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "igvm" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Build (mshv + kvm) run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "mshv,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 9bccb00f2..9969755e7 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -109,6 +109,14 @@ jobs: command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "sev_snp" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Clippy (igvm) + if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} + uses: actions-rs/cargo@v1 + with: + use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} + command: clippy + args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "igvm" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Clippy (kvm + tdx) if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} uses: actions-rs/cargo@v1