From 5aaa647639f63362579680b473bfc8c053bce89f Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 20 Jul 2022 23:59:24 +0000 Subject: [PATCH] .github: build MSHV and KVM at the same time Signed-off-by: Wei Liu --- .github/workflows/build.yaml | 3 +++ .github/workflows/quality.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 394c9279a..3bac2c72b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -59,6 +59,9 @@ jobs: - name: Build (common + mshv) run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "common,mshv" -- -D warnings + - name: Build (common + mshv + kvm) + run: cargo rustc --locked --bin cloud-hypervisor --no-default-features --features "common,mshv,kvm" -- -D warnings + - name: Release Build (default features) run: cargo build --locked --all --release --target=${{ matrix.target }} diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 1d664f47c..a3045dee8 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -51,5 +51,8 @@ jobs: - name: Clippy (common + mshv) run: cargo clippy --locked --all --all-targets --no-default-features --tests --features "common,mshv" -- -D warnings + - name: Clippy (common + mshv + kvm) + run: cargo clippy --locked --all --all-targets --no-default-features --tests --features "common,mshv,kvm" -- -D warnings + - name: Check build did not modify any files run: test -z "$(git status --porcelain)"