[ci] Add netty in HW CI
This commit is contained in:
parent
db2031a45f
commit
80e83920c5
46
.github/workflows/hw_mode_test.yml
vendored
46
.github/workflows/hw_mode_test.yml
vendored
@ -1000,6 +1000,52 @@ jobs:
|
||||
if: ${{ always() }}
|
||||
run: docker stop ${{ env.CONTAINER_NAME }}
|
||||
|
||||
Netty_UT_test:
|
||||
timeout-minutes: 180
|
||||
if: github.event_name == 'push' || github.event_name == 'schedule' || ${{ contains(github.event.pull_request.labels.*.name, 'SGX-hardware-test-required') }}
|
||||
runs-on: ${{ matrix.self_runner }}
|
||||
strategy:
|
||||
matrix:
|
||||
self_runner: [[self-hosted, SGX2-HW]]
|
||||
|
||||
steps:
|
||||
- name: Clean before running
|
||||
run: |
|
||||
sudo chown -R ${{ secrets.CI_ADMIN }} "${{ github.workspace }}"
|
||||
|
||||
- uses: AutoModality/action-clean@v1
|
||||
|
||||
- name: Checkout code
|
||||
if: github.event_name == 'push' || github.event_name == 'schedule'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Checkout code from fork
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'SGX-hardware-test-required') }}
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||
submodules: true
|
||||
|
||||
- uses: ./.github/workflows/composite_action/hw
|
||||
with:
|
||||
container-name: ${{ github.job }}
|
||||
build-envs: 'OCCLUM_RELEASE_BUILD=1'
|
||||
|
||||
- name: Install OpenJDK 11 (Glibc)
|
||||
run: docker exec ${{ github.job }} bash -c "apt update && apt install -y openjdk-11-jdk"
|
||||
|
||||
- name: Download and compile netty unit test demos
|
||||
run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut && ./build.sh"
|
||||
|
||||
- name: Run netty unit test demo
|
||||
run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut && ./run_netty_ut_jdk11.sh"
|
||||
|
||||
- name: Clean the environment
|
||||
if: ${{ always() }}
|
||||
run: docker stop ${{ env.CONTAINER_NAME }}
|
||||
|
||||
Stress_test_with_musl:
|
||||
timeout-minutes: 360
|
||||
if: github.event_name == 'schedule'
|
||||
|
Loading…
Reference in New Issue
Block a user