Skip to content

Commit

Permalink
ci: temporily delete occlum CI
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Jun 13, 2024
1 parent 9bcc7c1 commit 4e69980
Showing 1 changed file with 44 additions and 41 deletions.
85 changes: 44 additions & 41 deletions .github/workflows/aa_occlum_sgx.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
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:
# TODO: fix this pipeline as sgx is not validated not
# See https://github.com/confidential-containers/guest-components/issues/581

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@v4
with:
submodules: true
# 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:

- name: Configure Cargo
run: rustup default stable
# jobs:
# occlum_sgx_ci:
# runs-on: sgx
# 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@v4
# with:
# submodules: true

- name: Compile Occlum Example
run: cargo build --bin occlum-attester --no-default-features --features occlum
# - name: Configure Cargo
# run: rustup default stable

- name: Configure PCCS
run: |
sed -i 's/localhost:8081/sgx-dcap-server-vpc.cn-hongkong.aliyuncs.com/' /etc/sgx_default_qcnl.conf
# - name: Compile Occlum Example
# run: cargo build --bin occlum-attester --no-default-features --features occlum

- name: Build and run occlum bundle
run: |
cd ci && bash occlum.sh
# - 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

0 comments on commit 4e69980

Please sign in to comment.