From ce3b3fa1b248e86ae1bccacc273e87427b4b18d2 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Fri, 27 Mar 2026 18:41:24 +0000 Subject: [PATCH] build: Enable the vfio CI worker This reverts commit 8aaf3734aadbf550ad7df06328f5c7964fc38220. Fixes: #7751 Signed-off-by: Saravanan D Signed-off-by: Bo Chen --- .github/workflows/integration-vfio.yaml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/integration-vfio.yaml diff --git a/.github/workflows/integration-vfio.yaml b/.github/workflows/integration-vfio.yaml new file mode 100644 index 000000000..218e89727 --- /dev/null +++ b/.github/workflows/integration-vfio.yaml @@ -0,0 +1,33 @@ +name: Cloud Hypervisor Tests (VFIO) +on: [merge_group, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event_name }} + cancel-in-progress: true + +jobs: + build: + name: Tests (VFIO) + runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'vfio-nvidia' }} + env: + AUTH_DOWNLOAD_TOKEN: ${{ secrets.AUTH_DOWNLOAD_TOKEN }} + steps: + - name: Fix workspace permissions + if: ${{ github.event_name != 'pull_request' }} + run: sudo chown -R runner:runner ${GITHUB_WORKSPACE} + - name: Code checkout + if: ${{ github.event_name != 'pull_request' }} + uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Run VFIO integration tests + if: ${{ github.event_name != 'pull_request' }} + timeout-minutes: 15 + run: scripts/dev_cli.sh tests --integration-vfio + # Most tests are failing with musl see #6790 + # - name: Run VFIO integration tests for musl + # if: ${{ github.event_name != 'pull_request' }} + # timeout-minutes: 15 + # run: scripts/dev_cli.sh tests --integration-vfio --libc musl + - name: Skipping build for PR + if: ${{ github.event_name == 'pull_request' }} + run: echo "Skipping build for PR"