shelter: fix can not stat sgx_stub_enclave.signed.so error
Fixes:
@@ -34,9 +34,9 @@ jobs:
- name: Create container
run: |
- docker tag inclavarecontainers/dev:$RUNE_VERSION-centos8.2 inclavare-dev:centos8.2;
- docker tag inclavarecontainers/dev:$RUNE_VERSION-ubuntu18.04 inclavare-dev:ubuntu18.04;
- docker tag inclavarecontainers/dev:$RUNE_VERSION-alinux2 inclavare-dev:alinux2;
+ docker tag inclavarecontainers/dev:${{ env.RUNE_VERSION }}-centos8.2 inclavare-dev:centos8.2;
+ docker tag inclavarecontainers/dev:${{ env.RUNE_VERSION }}-ubuntu18.04 inclavare-dev:ubuntu18.04;
+ docker tag inclavarecontainers/dev:${{ env.RUNE_VERSION }}-alinux2 inclavare-dev:alinux2;
inclavare_dev=$(docker run -itd --privileged --rm --net host -e http_proxy=http://127.0.0.1:8118 -e https_proxy=http://127.0.0.1:8118 -v $GITHUB_WORKSPACE:/root/inclavare-containers inclavare-dev:${{ matrix.tag }});
echo "inclavare_dev=$inclavare_dev" >> $GITHUB_ENV
@@ -48,9 +48,9 @@ jobs:
# shelter depends on enclave-tls library
- name: Build and install enclave-tls sdk
run: docker exec $inclavare_dev bash -c 'cd /root && source /root/.bashrc;source /etc/profile;
- cp -r inclavare-containers inclavare-containers-$RUNE_VERSION;
+ cp -r inclavare-containers inclavare-containers-${{ env.RUNE_VERSION }};
mkdir -p /root/inclavare-containers/${{ matrix.tag }};
- cd inclavare-containers-$RUNE_VERSION/enclave-tls;
+ cd inclavare-containers-${{ env.RUNE_VERSION }}/enclave-tls;
make SGX=1 && make install;
cp -rf ${{ env.ENCLAVE_TLS_ROOTDIR }} /root/inclavare-containers/${{ matrix.tag }};
cp -rf ${{ env.ENCLAVE_TLS_BINDIR }} /root/inclavare-containers/${{ matrix.tag }}/enclave-tls'
@@ -59,11 +59,11 @@ jobs:
run: docker exec $inclavare_dev bash -c 'trap "error_handler $?" ERR;
error_handler() { local err=$?; printf "Cleaning up with exit code $err ...\n"; exit $err; };
cd /root && source /root/.bashrc; source /etc/profile;
- cd inclavare-containers-$RUNE_VERSION/shelter;
+ cd inclavare-containers-${{ env.RUNE_VERSION }}/shelter;
make;
cd ..;
cp -rf shelter /root/inclavare-containers/${{ matrix.tag }};
- cp /root/inclavare-containers-$RUNE_VERSION/enclave-tls/samples/sgx-stub-enclave/sgx_stub_enclave.signed.so /root/inclavare-containers/${{ matrix.tag }}/shelter;
+ cp /root/inclavare-containers-${{ env.RUNE_VERSION }}/enclave-tls/build/bin/sgx_stub_enclave.signed.so /root/inclavare-containers/${{ matrix.tag }}/shelter;
cd /root/inclavare-containers/${{ matrix.tag }}'
- name: Kill the dev container
