From 71b0eb3c21fdc2797e9037b4475936ce8842d0df Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Sun, 27 Oct 2024 16:56:53 +0800 Subject: [PATCH] ci: Enable consistency check for rust-vmm packages Enable `package-consistency` check to prevent contributor or dependabot accidentally break `rust-vmm` consistency. Signed-off-by: Ruoqing He --- .github/workflows/package-consistency.yaml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/package-consistency.yaml diff --git a/.github/workflows/package-consistency.yaml b/.github/workflows/package-consistency.yaml new file mode 100644 index 000000000..5e82efc1b --- /dev/null +++ b/.github/workflows/package-consistency.yaml @@ -0,0 +1,26 @@ +name: Cloud Hypervisor Consistency +on: [pull_request, merge_group] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Rust VMM Consistency Check + runs-on: ubuntu-latest + steps: + - name: Code checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install dependencies + run: sudo apt install -y python3 + + - name: Install Rust toolchain stable + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + + - name: Check Rust VMM Package Consistency + run: python3 scripts/package-consistency-check.py github.com/rust-vmm