mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-31 18:15:20 +00:00
build: Enable vfio and sgx worker
This reverts commit 7d84654a79
.
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
7c608f6380
commit
b5cce0d371
32
.github/workflows/integration-sgx.yaml
vendored
Normal file
32
.github/workflows/integration-sgx.yaml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Cloud Hypervisor Tests (SGX)
|
||||||
|
on: [merge_group, pull_request]
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Tests (SGX)
|
||||||
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-sgx' }}
|
||||||
|
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 SGX integration tests
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: scripts/dev_cli.sh tests --integration-sgx
|
||||||
|
- name: Run SGX integration tests for musl
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: scripts/dev_cli.sh tests --integration-sgx --libc musl
|
||||||
|
- name: Skipping build for PR
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
run: echo "Skipping build for PR"
|
32
.github/workflows/integration-vfio.yaml
vendored
Normal file
32
.github/workflows/integration-vfio.yaml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
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"
|
Loading…
Reference in New Issue
Block a user