From ac3ef0849e214eabb1454ac592d4b89da769cd53 Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Fri, 29 Nov 2024 17:23:31 +0800 Subject: [PATCH] ci: Enable riscv64 CI of arch module Enable build, clippy and unit-test on arch module. Signed-off-by: Ruoqing He --- .github/workflows/preview-riscv64.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/preview-riscv64.yaml b/.github/workflows/preview-riscv64.yaml index 7e6614d7f..064e1491f 100644 --- a/.github/workflows/preview-riscv64.yaml +++ b/.github/workflows/preview-riscv64.yaml @@ -8,6 +8,13 @@ jobs: build: name: Cargo runs-on: riscv64-qemu-host + strategy: + fail-fast: false + matrix: + module: + - hypervisor + - arch + steps: - name: Code checkout uses: actions/checkout@v4 @@ -17,14 +24,14 @@ jobs: - name: Install Rust toolchain run: /opt/scripts/exec-in-qemu.sh rustup default 1.77.0 - - name: Build hypervisor Module (kvm) - run: /opt/scripts/exec-in-qemu.sh cargo rustc --locked -p hypervisor --no-default-features --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states + - 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 -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states - - name: Clippy hypervisor Module (kvm) - run: /opt/scripts/exec-in-qemu.sh cargo clippy --locked -p hypervisor --no-default-features --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states + - 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 -D clippy::undocumented_unsafe_blocks -W clippy::assertions_on_result_states - - name: Test hypervisor Module (kvm) - run: /opt/scripts/exec-in-qemu.sh cargo test --locked -p hypervisor --no-default-features --features "kvm" + - 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)"