mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
be0cbb09b1
In the absence of a way of integration testing this testing that it compiles is reasonable compromise. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
52 lines
1.8 KiB
YAML
52 lines
1.8 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 (acpi,kvm,tdx)
|
|
run: cargo clippy --all --all-targets --no-default-features --tests --features "acpi,kvm,tdx" -- -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
|
|
|
|
- name: Clippy (integration tests)
|
|
run: cargo clippy --all --all-targets --tests --features "integration_tests" -- -D warnings
|