mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
0f71956d6d
The workers share a common public IP address and often GitHub will reject attempts to access the API due to exceeding the anonymous rate limit threshold. Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
name: Cloud Hypervisor Tests (VFIO)
|
|
on: [merge_group, pull_request]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Tests (VFIO)
|
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-vfio' }}
|
|
env:
|
|
AUTH_DOWNLOAD_TOKEN: ${{ secrets.AUTH_DOWNLOAD_TOKEN }}
|
|
steps:
|
|
- name: Fix workspace permissions
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
|
- name: Code checkout
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
uses: actions/checkout@v4
|
|
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
|
|
- 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"
|