From bf7a55ee10d812cf4ed6d9f01a8f3f84d4d029de Mon Sep 17 00:00:00 2001 From: "Hui, Chunyang" Date: Thu, 8 Jun 2023 12:34:51 +0000 Subject: [PATCH] Fix building TF serving image failure Due to limited resources of Github Actions' hosted machine, we changed to build this image on our self-hosted machine. --- .github/workflows/build_and_push_ci_image.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push_ci_image.yml b/.github/workflows/build_and_push_ci_image.yml index 776ff7ea..f152518d 100644 --- a/.github/workflows/build_and_push_ci_image.yml +++ b/.github/workflows/build_and_push_ci_image.yml @@ -214,10 +214,16 @@ jobs: # Thus dividing into two jobs. Build_tf_serving_image: - runs-on: ubuntu-20.04 + # Building TF serving demo image needs a lot of resources which exceeds the limit of GitHub Actions' hosted machine. + # Thus, we need to build this image on our host machine. This begins from Occlum 0.29.6 and onwards. + runs-on: [self-hosted, SGX2-HW] if: github.event.inputs.image_name == 'tf_serving' steps: + - name: Clean before running + run: | + sudo chown -R ${{ secrets.CI_ADMIN }} "${{ github.workspace }}" + - name: Checkout code uses: actions/checkout@v2