A major improvement to the developer experience of clippy in Cloud Hypervisor. 1. Make `cargo clippy` just work with the same lints we use in CI 2. Simplify adding new lints Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Cloud Hypervisor RISC-V 64-bit Preview
|
|
on: [pull_request, merge_group]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Cargo
|
|
runs-on: riscv64-qemu-host
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
module:
|
|
- hypervisor
|
|
- arch
|
|
- vm-allocator
|
|
- devices
|
|
|
|
steps:
|
|
- name: Code checkout
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Rust toolchain
|
|
run: /opt/scripts/exec-in-qemu.sh rustup default 1.89.0
|
|
|
|
- name: Build ${{ matrix.module }} Module (kvm)
|
|
run: /opt/scripts/exec-in-qemu.sh cargo rustc --locked -p ${{ matrix.module }} --no-default-features --features "kvm" -- -D warnings
|
|
|
|
- name: Clippy ${{ matrix.module }} Module (kvm)
|
|
run: /opt/scripts/exec-in-qemu.sh cargo clippy --locked -p ${{ matrix.module }} --no-default-features --features "kvm" -- -D warnings
|
|
|
|
- name: Test ${{ matrix.module }} Module (kvm)
|
|
run: /opt/scripts/exec-in-qemu.sh cargo test --locked -p ${{ matrix.module }} --no-default-features --features "kvm"
|
|
|
|
- name: Check no files were modified
|
|
run: test -z "$(git status --porcelain)"
|