From 34c5a081aa234a2e7963c365d051074471644162 Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Tue, 19 Aug 2025 20:25:55 +0000 Subject: [PATCH] ci: Enable kvm build test on RISC-V Enable kvm build test and clippy test on RISC-V 64-bit platform to ensure whole projects builds properly. Signed-off-by: Ruoqing He --- .github/workflows/preview-riscv64-build.yaml | 30 +++++++++++++++++++ ...cv64.yaml => preview-riscv64-modules.yaml} | 0 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/preview-riscv64-build.yaml rename .github/workflows/{preview-riscv64.yaml => preview-riscv64-modules.yaml} (100%) diff --git a/.github/workflows/preview-riscv64-build.yaml b/.github/workflows/preview-riscv64-build.yaml new file mode 100644 index 000000000..929a60147 --- /dev/null +++ b/.github/workflows/preview-riscv64-build.yaml @@ -0,0 +1,30 @@ +name: Cloud Hypervisor RISC-V 64-bit kvm build 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 + + 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.88.0 + + - name: Build test (kvm) + run: /opt/scripts/exec-in-qemu.sh cargo rustc --locked --no-default-features --features "kvm" + + - name: Clippy test (kvm) + run: /opt/scripts/exec-in-qemu.sh cargo clippy --locked --no-default-features --features "kvm" + + - name: Check no files were modified + run: test -z "$(git status --porcelain)" diff --git a/.github/workflows/preview-riscv64.yaml b/.github/workflows/preview-riscv64-modules.yaml similarity index 100% rename from .github/workflows/preview-riscv64.yaml rename to .github/workflows/preview-riscv64-modules.yaml