xref: /cloud-hypervisor/.github/workflows/integration-vfio.yaml (revision eeae63b4595fbf0cc69f62b6e9d9a79c543c4ac7)
1name: Cloud Hypervisor Tests (VFIO)
2on: [merge_group, pull_request]
3concurrency:
4  group: ${{ github.workflow }}-${{ github.ref }}
5  cancel-in-progress: true
6
7jobs:
8  build:
9    name: Tests (VFIO)
10    runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'vfio-nvidia' }}
11    env:
12      AUTH_DOWNLOAD_TOKEN: ${{ secrets.AUTH_DOWNLOAD_TOKEN }}
13    steps:
14      - name: Fix workspace permissions
15        if: ${{ github.event_name != 'pull_request' }}
16        run: sudo chown -R runner:runner ${GITHUB_WORKSPACE}
17      - name: Code checkout
18        if: ${{ github.event_name != 'pull_request' }}
19        uses: actions/checkout@v4
20        with:
21          fetch-depth: 0
22      - name: Run VFIO integration tests
23        if: ${{ github.event_name != 'pull_request' }}
24        timeout-minutes: 15
25        run: scripts/dev_cli.sh tests --integration-vfio
26      # Most tests are failing with musl see #6790
27      # - name: Run VFIO integration tests for musl
28      #   if: ${{ github.event_name != 'pull_request' }}
29      #   timeout-minutes: 15
30      #   run: scripts/dev_cli.sh tests --integration-vfio --libc musl
31      - name: Skipping build for PR
32        if: ${{ github.event_name == 'pull_request' }}
33        run: echo "Skipping build for PR"
34