From b5cce0d371302aa861d61ae27aff7c960b4bb151 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Tue, 2 Jul 2024 15:29:28 -0700 Subject: [PATCH] build: Enable vfio and sgx worker This reverts commit 7d84654a79a4a4ed86e911b35a9ed78ec1468ea0. Signed-off-by: Bo Chen --- .github/workflows/integration-sgx.yaml | 32 +++++++++++++++++++++++++ .github/workflows/integration-vfio.yaml | 32 +++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/integration-sgx.yaml create mode 100644 .github/workflows/integration-vfio.yaml diff --git a/.github/workflows/integration-sgx.yaml b/.github/workflows/integration-sgx.yaml new file mode 100644 index 000000000..b8e4d7054 --- /dev/null +++ b/.github/workflows/integration-sgx.yaml @@ -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" diff --git a/.github/workflows/integration-vfio.yaml b/.github/workflows/integration-vfio.yaml new file mode 100644 index 000000000..196b1d430 --- /dev/null +++ b/.github/workflows/integration-vfio.yaml @@ -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"