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 7a73308  Start to use GitHub Action (#473)
7a73308 is described below

commit 7a73308e503c7f4da3fcfe708087f4389c955a3c
Author: Mingshen Sun <[email protected]>
AuthorDate: Tue Jan 26 17:07:31 2021 -0800

    Start to use GitHub Action (#473)
---
 .github/workflows/ci.yml | 87 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 87 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..6eab6e0
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,87 @@
+name: CI
+on: [push, pull_request]
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  sim-debug-ubuntu-1804:
+    runs-on: ubuntu-18.04
+    container: teaclave/teaclave-build-ubuntu-1804-sgx-2.9.1:0.1.2
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          submodules: 'true'
+      - name: Setting up $HOME
+        run: |
+          cp /root/.bashrc $HOME/.bashrc &&
+          ln -sf /root/.rustup ~/.rustup &&
+          ln -sf /root/.cargo ~/.cargo
+      - 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: |
+          . ~/.cargo/env &&
+          cd build &&
+          make VERBOSE=1
+      - name: Run tests and examples
+        run: |
+          export AS_SPID="00000000000000000000000000000000" &&
+          export AS_KEY="00000000000000000000000000000000" &&
+          export AS_ALGO="sgx_epid" &&
+          export AS_URL="https://api.trustedservices.intel.com:443"; &&
+          . ~/.cargo/env &&
+          cd build &&
+          make run-tests
+
+  format:
+    runs-on: ubuntu-18.04
+    container: teaclave/teaclave-build-ubuntu-1804-sgx-2.9.1:0.1.2
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          submodules: 'true'
+      - name: Setting up $HOME
+        run: |
+          cp /root/.bashrc $HOME/.bashrc &&
+          ln -sf /root/.rustup ~/.rustup &&
+          ln -sf /root/.cargo ~/.cargo
+      - name: Preparing build system
+        run: |
+          . ~/.cargo/env &&
+          . /opt/sgxsdk/environment &&
+          mkdir -p build &&
+          cd build &&
+          cmake -DRUSTFLAGS="-D warnings" -DTEST_MODE=ON ..
+      - name: Checking code format
+        run: |
+          . /root/.cargo/env &&
+          cd build && make check
+  lint:
+    runs-on: ubuntu-18.04
+    container: teaclave/teaclave-build-ubuntu-1804-sgx-2.9.1:0.1.2
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          submodules: 'true'
+      - name: Setting up $HOME
+        run: |
+          cp /root/.bashrc $HOME/.bashrc &&
+          ln -sf /root/.rustup ~/.rustup &&
+          ln -sf /root/.cargo ~/.cargo
+      - name: Preparing build system
+        run: |
+          . ~/.cargo/env &&
+          . /opt/sgxsdk/environment &&
+          mkdir -p build &&
+          cd build &&
+          cmake -DRUSTFLAGS="-D warnings" -DTEST_MODE=ON ..
+      - name: Code linting with Clippy
+        run: |
+          . /root/.cargo/env &&
+          cd build && make CLP=1


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

Reply via email to