2024-02-22 18:07:03 +00:00
|
|
|
name: Cloud Hypervisor Tests (VFIO)
|
2024-02-29 07:36:30 +00:00
|
|
|
on: [merge_group, pull_request]
|
2024-03-01 18:00:16 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2024-02-22 18:07:03 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Tests (VFIO)
|
2024-02-29 07:36:30 +00:00
|
|
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-vfio' }}
|
2024-03-02 10:31:00 +00:00
|
|
|
env:
|
|
|
|
AUTH_DOWNLOAD_TOKEN: ${{ secrets.AUTH_DOWNLOAD_TOKEN }}
|
2024-02-22 18:07:03 +00:00
|
|
|
steps:
|
2024-02-29 22:23:30 +00:00
|
|
|
- name: Fix workspace permissions
|
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
2024-02-22 18:07:03 +00:00
|
|
|
- name: Code checkout
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-22 18:07:03 +00:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Run VFIO integration tests
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-22 18:07:03 +00:00
|
|
|
timeout-minutes: 15
|
|
|
|
run: scripts/dev_cli.sh tests --integration-vfio
|
|
|
|
- name: Run VFIO integration tests for musl
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-22 18:07:03 +00:00
|
|
|
timeout-minutes: 15
|
|
|
|
run: scripts/dev_cli.sh tests --integration-vfio --libc musl
|
2024-02-29 07:36:30 +00:00
|
|
|
- name: Skipping build for PR
|
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
run: echo "Skipping build for PR"
|