forked from confidential-containers/guest-components
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.22 KB
/
aa_occlum_sgx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: attestation-agent occlum_sgx tests
on:
push:
branches:
- 'main'
paths:
- 'attestation-agent/attester/src/sgx_dcap'
- 'attestation-agent/ci/occlum**'
- '.github/workflows/aa_occlum_sgx.yml'
pull_request:
paths:
- 'attestation-agent/attester/src/sgx_dcap'
- 'attestation-agent/ci/occlum**'
- '.github/workflows/aa_occlum_sgx.yml'
create:
workflow_dispatch:
jobs:
occlum_sgx_ci:
runs-on: self-hosted
container:
image: occlum/occlum:latest-ubuntu20.04
options: --device /dev/sgx_enclave --device /dev/sgx_provision
defaults:
run:
shell: bash
working-directory: ./attestation-agent
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: true
- name: Configure Cargo
run: rustup default stable
- name: Compile Occlum Example
run: cargo build --bin occlum-attester --no-default-features --features occlum
- name: Configure PCCS
run: |
sed -i 's/localhost:8081/sgx-dcap-server-vpc.cn-hongkong.aliyuncs.com/' /etc/sgx_default_qcnl.conf
- name: Build and run occlum bundle
run: |
cd ci && bash occlum.sh