fix packager script

This commit is contained in:
Valentyn Faychuk 2024-11-06 23:05:29 +02:00
parent 75c94324dd
commit 193426b041
Signed by: valy
GPG Key ID: F1AB995E20FEADC5

@ -29,12 +29,13 @@ if [ "$prerequisites" == "--prep" ]; then
chown -R root:root /root/.ssh
chmod 600 /root/.ssh/id_ed25519
ssh-keyscan -H gitea.detee.cloud > ~/.ssh/known_hosts
echo "Building the occlum fork"
git clone git@gitea.detee.cloud:SGX/occlum.git
(cd occlum && make submodule)
(cd tools/toolchains/utils_lib && ./build.sh)
fi
echo "Building the occlum fork"
git clone git@gitea.detee.cloud:SGX/occlum.git
(cd occlum && make submodule)
(cd tools/toolchains/utils_lib && ./build.sh)
echo "Building the hacker-challenge signed bundle"
occlum-cargo build --release
@ -52,7 +53,7 @@ targets:
copy:
- files:
- /opt/occlum/toolchains/dcap_lib/musl/libocclum_dcap.so.0.1.0
- /opt/occlum/toolchains/utils_lib/musl/libutils_dcap.so.0.1.0
- /opt/occlum/toolchains/utils_lib/musl/libocclum_utils.so.0.1.0
EOF
rm -rf challenge_instance && mkdir challenge_instance && cd challenge_instance