This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch github-action
in repository 
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git

commit 3e0043a822fb2f0783c20993cd45d4c8c94a1e33
Author: Mingshen Sun <[email protected]>
AuthorDate: Mon Jun 28 11:30:13 2021 -0700

    Use Github Actions
---
 .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..59c4dac
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,35 @@
+name: CI
+on: [push, pull_request]
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  build-and-run-examples:
+    runs-on: ubuntu-18.04
+    container: teaclave/teaclave-trustzone-sdk-build:0.1.1
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setting up repository
+        run: |
+          git submodule update --depth 1 --init &&
+          (cd rust/compiler-builtins && git submodule update --depth 1 --init 
libm) &&
+          (cd rust/rust && git submodule update --depth 1 --init src/stdsimd)
+      - name: Preparing build system
+        run: |
+          . ~/.cargo/env &&
+          . /opt/sgxsdk/environment &&
+          mkdir -p build &&
+          cd build &&
+          cmake -DCMAKE_BUILD_TYPE=Debug -DSGX_SIM_MODE=ON -DTEST_MODE=ON ..
+      - name: Building
+        run: |
+          make optee &&
+          source environment &&
+          rustup default nightly-2019-07-08 &&
+          (cd optee-utee && xargo build --target 
aarch64-unknown-optee-trustzone -vv) &&
+          (cd optee-teec && cargo build --target aarch64-unknown-linux-gnu -vv)
+          make examples
+      - name: Run tests and examples
+        run: |
+          cd ci && ./ci.sh

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to