You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2021/08/05 02:56:40 UTC
[incubator-teaclave] branch master updated: Update CI image and add
TVM example build (#538)
This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
The following commit(s) were added to refs/heads/master by this push:
new 3aad73d Update CI image and add TVM example build (#538)
3aad73d is described below
commit 3aad73da5c3f6e4dabc5018009f20f40caba854c
Author: Hongbo <12...@users.noreply.github.com>
AuthorDate: Wed Aug 4 22:56:34 2021 -0400
Update CI image and add TVM example build (#538)
---
.drone.yml | 76 +++++++++++++++++++++++++++++++++---------------
.github/workflows/ci.yml | 19 +++---------
2 files changed, 57 insertions(+), 38 deletions(-)
diff --git a/.drone.yml b/.drone.yml
index e0f706d..1e4a25a 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -3,26 +3,32 @@ name: sgx-debug-ubuntu-1804
steps:
- name: prepare
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- mkdir -p build
- cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DTEST_MODE=ON ..
- name: check
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make check
- name: compile
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make VERBOSE=1 -j2
+- name: tvm example
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
+ commands:
+ - . ~/.cargo/env
+ - cd examples/python/wasm_tvm_mnist_payload
+ - make
- name: test
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
environment:
AS_ALGO: sgx_epid
AS_URL: https://api.trustedservices.intel.com:443
@@ -61,27 +67,33 @@ name: sgx-dcap-debug-ubuntu-1804
steps:
- name: prepare
- image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- mkdir -p build
- cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DTEST_MODE=ON -DDCAP=ON ..
- name: check
- image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make check
- name: compile
- image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- sed -i 's/ias_root_ca_cert/dcap_root_ca_cert/' config/build.config.toml
- cd build && make VERBOSE=1 -j2
+- name: tvm example
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
+ commands:
+ - . ~/.cargo/env
+ - cd examples/python/wasm_tvm_mnist_payload
+ - make
- name: test
- image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.11:0.1.2
environment:
AS_ALGO: sgx_ecdsa
AS_URL: https://localhost:8080
@@ -140,26 +152,32 @@ name: sgx-release-ubuntu-1804
steps:
- name: prepare
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- mkdir -p build
- cd build && cmake -DCMAKE_BUILD_TYPE=Release -DTEST_MODE=OFF ..
- name: check
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make check
- name: compile
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make VERBOSE=1 -j2
+- name: tvm example
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
+ commands:
+ - . ~/.cargo/env
+ - cd examples/python/wasm_tvm_mnist_payload
+ - make
- name: test
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
privileged: true
environment:
AS_ALGO: sgx_epid
@@ -196,26 +214,32 @@ name: sim-debug-ubuntu-1804
steps:
- name: prepare
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- mkdir -p build
- cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DSGX_SIM_MODE=ON -DTEST_MODE=ON ..
- name: check
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make check
- name: compile
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make VERBOSE=1 -j2
+- name: tvm example
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
+ commands:
+ - . ~/.cargo/env
+ - cd examples/python/wasm_tvm_mnist_payload
+ - make
- name: test
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
environment:
AS_ALGO: sgx_epid
AS_URL: https://api.trustedservices.intel.com:443
@@ -238,26 +262,32 @@ name: sim-release-ubuntu-1804
steps:
- name: prepare
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- mkdir -p build
- cd build && cmake -DCMAKE_BUILD_TYPE=Release -DSGX_SIM_MODE=ON -DTEST_MODE=OFF ..
- name: check
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make check
- name: compile
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make VERBOSE=1 -j2
+- name: tvm example
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
+ commands:
+ - . ~/.cargo/env
+ - cd examples/python/wasm_tvm_mnist_payload
+ - make
- name: test
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
@@ -273,20 +303,20 @@ name: lint
steps:
- name: prepare
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- mkdir -p build
- cd build && cmake -DRUSTFLAGS="-D warnings" -DTEST_MODE=ON ..
- name: check
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
- cd build && make check
- name: clippy
- image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.0
+ image: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
commands:
- . /root/.cargo/env
- . /opt/sgxsdk/environment
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 60452aa..a5dfcf4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,7 +28,7 @@ jobs:
cd sdk/swift/TeaclaveClientSDK && xcodebuild -scheme TeaclaveClientSDK
sim-debug-ubuntu-1804:
runs-on: ubuntu-18.04
- container: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.1
+ container: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
steps:
- uses: actions/checkout@v2
- name: Setting up $HOME
@@ -49,19 +49,8 @@ jobs:
. ~/.cargo/env &&
cd build &&
make VERBOSE=1
- - name: Prepare TVM example building environment and TVM example
+ - name: Build TVM example
run: |
- git clone https://github.com/apache/tvm /tvm &&
- cd /tvm &&
- git checkout df06c5848f59108a8e6e7dffb997b4b659b573a7 &&
- git submodule init &&
- git submodule update &&
- mkdir build &&
- cd build &&
- cp ../cmake/config.cmake ./ &&
- sed -i '/set(USE_LLVM OFF)/c\set(USE_LLVM ON)' config.cmake &&
- cmake -DUSE_LLVM=ON .. &&
- make -j4 &&
. ~/.cargo/env &&
cd ${GITHUB_WORKSPACE}/examples/python/wasm_tvm_mnist_payload &&
make
@@ -77,7 +66,7 @@ jobs:
format:
runs-on: ubuntu-18.04
- container: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.1
+ container: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
steps:
- uses: actions/checkout@v2
- name: Setting up $HOME
@@ -98,7 +87,7 @@ jobs:
cd build && make check
lint:
runs-on: ubuntu-18.04
- container: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.1
+ container: teaclave/teaclave-build-ubuntu-1804-sgx-2.14:0.1.2
steps:
- uses: actions/checkout@v2
- name: Setting up $HOME
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org