2024-02-22 19:38:26 +00:00
|
|
|
name: Cloud Hypervisor Tests (SGX)
|
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 19:38:26 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Tests (SGX)
|
2024-02-29 07:36:30 +00:00
|
|
|
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'jammy-sgx' }}
|
2024-02-22 19:38:26 +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 19:38:26 +00:00
|
|
|
- name: Code checkout
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-22 19:38:26 +00:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Run SGX integration tests
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-22 19:38:26 +00:00
|
|
|
timeout-minutes: 10
|
|
|
|
run: scripts/dev_cli.sh tests --integration-sgx
|
|
|
|
- name: Run SGX integration tests for musl
|
2024-02-29 07:36:30 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
2024-02-22 19:38:26 +00:00
|
|
|
timeout-minutes: 10
|
|
|
|
run: scripts/dev_cli.sh tests --integration-sgx --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"
|