diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8f521cc10..4aa6ae2dc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,6 +51,9 @@ jobs: - name: Build (mshv) run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "mshv" -- -D warnings -D clippy::undocumented_unsafe_blocks + - 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 (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 1889651df..3d8431269 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -101,6 +101,14 @@ jobs: command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "mshv,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Clippy (sev_snp) + 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 "sev_snp" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Clippy (kvm + tdx) if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} uses: actions-rs/cargo@v1