From 24ed063dbe5037a6c4db35d3c4ead5377411fed4 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 5 Aug 2024 21:31:44 +0000 Subject: [PATCH] github: add build and clippy tests for pvmemcontrol Signed-off-by: Wei Liu --- .github/workflows/build.yaml | 3 +++ .github/workflows/quality.yaml | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d05d8f2af..93c874520 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -49,6 +49,9 @@ jobs: - name: Build (default features + guest_debug) run: cargo rustc --locked --bin cloud-hypervisor --features "guest_debug" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Build (default features + pvmemcontrol) + run: cargo rustc --locked --bin cloud-hypervisor --features "pvmemcontrol" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Build (mshv) run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "mshv" -- -D warnings -D clippy::undocumented_unsafe_blocks diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index b2230e0d4..93777b618 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -80,6 +80,13 @@ jobs: command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --tests --examples --features "guest_debug" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Clippy (default features + pvmemcontrol) + 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 --tests --examples --features "pvmemcontrol" -- -D warnings -D clippy::undocumented_unsafe_blocks + - name: Clippy (default features + tracing) uses: actions-rs/cargo@v1 with: