From 69a8d078a5bece4c3134eecec590b694212cddd3 Mon Sep 17 00:00:00 2001 From: Shaowei Song Date: Sun, 24 Dec 2023 17:30:06 +0800 Subject: [PATCH] [ci] Enable features on hw ci for EDMM --- .github/workflows/composite_action/hw/action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/composite_action/hw/action.yml b/.github/workflows/composite_action/hw/action.yml index 45e30e42..a9abbb0c 100644 --- a/.github/workflows/composite_action/hw/action.yml +++ b/.github/workflows/composite_action/hw/action.yml @@ -87,3 +87,10 @@ runs: run: docker exec ${{ env.CONTAINER_NAME }} bash -c "source /opt/intel/sgxsdk/environment; cd /root/occlum; ${{ inputs.build-envs}} make install" shell: bash + # When there comes new features, the configuration should be enabled accordingly + - name: Configure Occlum features + run: | + if [[ "${{ matrix.self_runner[2] }}" == "EDMM" ]]; then + docker exec ${{ env.CONTAINER_NAME }} bash -c "jq '.feature.enable_posix_shm = true' /opt/occlum/etc/template/Occlum.json > /tmp.json && mv /tmp.json /opt/occlum/etc/template/Occlum.json" + fi; + shell: bash