Skip to content

Commit

Permalink
ci: update occlum ci
Browse files Browse the repository at this point in the history
Now we are using a ACTIONS_RUNNER_HOOK_JOB_COMPLETED ability provided by
github action. This allows us not to explicitly define a post-run script
in yaml. The post actions are defined onside the runner itself.

See documents: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/running-scripts-before-or-after-a-job#triggering-the-scripts

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 authored and arronwy committed Jun 21, 2024
1 parent 2f1380f commit d7feaf8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/aa_occlum_sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,3 @@ jobs:
- name: Run Occlum instance
run: |
docker run --rm -i --device /dev/sgx_enclave --device /dev/sgx_provision -v /etc/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf -v $(pwd):/home occlum/occlum:latest-ubuntu20.04 bash -c "cd /home/attestation-agent/ci && ./occlum.sh"
- name: Take a post-action for self-hosted runner
if: always()
run: |
if [ -f ${HOME}/script/post_action.sh ]; then
${HOME}/script/post_action.sh guest-components
fi

0 comments on commit d7feaf8

Please sign in to comment.