build: Add amx workflows

With the addition of the amx feature, add a new build workflow to
enable the feature and a clippy quality check.

Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
William Douglas 2022-03-25 11:53:21 -07:00 committed by William Douglas
parent 6b0df31e5d
commit c8d07f66d1
2 changed files with 7 additions and 1 deletions

View File

@ -52,7 +52,10 @@ jobs:
- name: Build (mshv)
run: cargo rustc --bin cloud-hypervisor --no-default-features --features "mshv" -- -D warnings
- name: Build (default + amx)
run: cargo rustc --bin cloud-hypervisor --features "amx" -- -D warnings
- name: Release Build (default features)
run: cargo build --all --release --target=${{ matrix.target }}

View File

@ -54,6 +54,9 @@ jobs:
- name: Clippy (mshv)
run: cargo clippy --all --all-targets --no-default-features --tests --features "mshv" -- -D warnings
- name: Clippy (default + amx)
run: cargo clippy --all --all-targets --tests --features "amx" -- -D warnings
- name: Clippy (integration tests)
run: cargo clippy --all --all-targets --tests -- -D warnings