mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-05 11:31:14 +00:00
c32959261e
Since we can't test mshv and kvm at the same time, --all-features no longer work. We factorize all, non-hypervisor related features into a common set and mix that with either mshv and kvm. Co-Developed-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Co-Developed-by: Wei Liu <liuwe@microsoft.com> Signed-off-by: Wei Liu <liuwe@microsoft.com> Signed-off-by: Muminul Islam <muislam@microsoft.com>
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
name: Cloud Hypervisor Quality Checks
|
|
on: [pull_request, create]
|
|
|
|
jobs:
|
|
build:
|
|
if: github.event_name == 'pull_request'
|
|
name: Quality (clippy, rustfmt)
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- stable
|
|
target:
|
|
- x86_64-unknown-linux-gnu
|
|
steps:
|
|
- name: Code checkout
|
|
uses: actions/checkout@v2
|
|
- name: Install Rust toolchain (${{ matrix.rust }})
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust }}
|
|
target: ${{ matrix.target }}
|
|
override: true
|
|
components: rustfmt, clippy
|
|
|
|
- name: Formatting (rustfmt)
|
|
run: cargo fmt -- --check
|
|
|
|
- name: Clippy (all features,kvm)
|
|
run: cargo clippy --all --all-targets --no-default-features --tests --features "common,kvm" -- -D warnings
|
|
|
|
- name: Clippy (all features,mshv)
|
|
run: cargo clippy --all --all-targets --no-default-features --tests --features "common,mshv" -- -D warnings
|
|
|
|
- name: Clippy (acpi,kvm)
|
|
run: cargo clippy --all --all-targets --no-default-features --tests --features "acpi,kvm" -- -D warnings
|
|
|
|
- name: Clippy (kvm)
|
|
run: cargo clippy --all --all-targets --no-default-features --tests --features "kvm" -- -D warnings
|
|
|
|
- name: Clippy (acpi,mshv)
|
|
run: cargo clippy --all --all-targets --no-default-features --tests --features "acpi,mshv" -- -D warnings
|
|
|
|
- name: Clippy (mshv)
|
|
run: cargo clippy --all --all-targets --no-default-features --tests --features "mshv" -- -D warnings
|