From 589dc77354f9d9452d986f951f5ef805dd1c82b1 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 18 Nov 2021 10:34:13 +0000 Subject: [PATCH] build: Add GitHub action to build test TDX feature Signed-off-by: Rob Bradford --- .github/workflows/build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5ec94b3bc..627a3740f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,6 +34,9 @@ jobs: git rev-list origin/main..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo check --all --target=${{ matrix.target }}' git checkout $GITHUB_SHA + - name: Build (default + tdx) + run: cargo rustc --bin cloud-hypervisor --features "tdx" -- -D warnings + - name: Build (acpi,kvm) run: cargo rustc --bin cloud-hypervisor --no-default-features --features "acpi,kvm" -- -D warnings