Update bazel demo with bom file

This commit is contained in:
zongmin.gu 2021-09-26 11:53:58 +08:00 committed by Zongmin.Gu
parent c6dc8c807c
commit c5c91baf84
2 changed files with 9 additions and 2 deletions

@ -171,8 +171,8 @@ jobs:
- name: Test bazel
run: docker exec hello_bazel_test bash -c "cd /root/occlum/demos/hello_bazel && occlum new occlum_instance;
cp examples/cpp-tutorial/stage3/bazel-bin/main/hello-world occlum_instance/image/bin;
cd occlum_instance && SGX_MODE=SIM occlum build;
cd occlum_instance && rm -rf image && copy_bom -f ../bazel.yaml --root image --include-dir /opt/occlum/etc/template;
SGX_MODE=SIM occlum build;
occlum run /bin/hello-world"

@ -0,0 +1,7 @@
includes:
- base.yaml
targets:
- target: /bin
copy:
- files:
- ../examples/cpp-tutorial/stage3/bazel-bin/main/hello-world