Skip to content

Commit

Permalink
Port to sgx 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dingelish committed Dec 14, 2020
1 parent 7e6d4b4 commit 5d0f747
Show file tree
Hide file tree
Showing 100 changed files with 7,613 additions and 419 deletions.
237 changes: 237 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
kind: pipeline
name: http_req-sgx-xargo-1604-sw

steps:
- name: sim-compile
image: baiduxlab/sgx-rust:1604-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- cd sgx && SGX_MODE=SW XARGO_SGX=1 make -C http_req-sgx-test

- name: sim-test
image: baiduxlab/sgx-rust:1604-1.1.3
commands:
- . /opt/sgxsdk/environment
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

node:
instance: sgx

---

kind: pipeline
name: http_req-sgx-xargo-1604-hw

steps:
- name: hw-compile
image: baiduxlab/sgx-rust:1604-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- cd sgx && XARGO_SGX=1 make -C http_req-sgx-test

- name: hw-test
image: baiduxlab/sgx-rust:1604-1.1.3
privileged: true
volumes:
- name: isgx
path: /dev/isgx
- name: aesmd
path: /var/run/aesmd/aesm.socket
commands:
- . /opt/sgxsdk/environment
- ls -l /dev/isgx
- ls -l /var/run/aesmd/aesm.socket
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

volumes:
- name: isgx
host:
path: /dev/isgx
- name: aesmd
host:
path: /var/run/aesmd/aesm.socket

node:
instance: sgx

---

kind: pipeline
name: http_req-sgx-xargo-1804-sw

steps:
- name: sim-compile
image: baiduxlab/sgx-rust:1804-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- cd sgx && SGX_MODE=SW XARGO_SGX=1 make -C http_req-sgx-test

- name: sim-test
image: baiduxlab/sgx-rust:1804-1.1.3
commands:
- . /opt/sgxsdk/environment
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

node:
instance: sgx

---

kind: pipeline
name: http_req-sgx-xargo-1804-hw

steps:
- name: hw-compile
image: baiduxlab/sgx-rust:1804-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- cd sgx && XARGO_SGX=1 make -C http_req-sgx-test

- name: hw-test
image: baiduxlab/sgx-rust:1804-1.1.3
privileged: true
volumes:
- name: isgx
path: /dev/isgx
- name: aesmd
path: /var/run/aesmd/aesm.socket
commands:
- . /opt/sgxsdk/environment
- ls -l /dev/isgx
- ls -l /var/run/aesmd/aesm.socket
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

volumes:
- name: isgx
host:
path: /dev/isgx
- name: aesmd
host:
path: /var/run/aesmd/aesm.socket

node:
instance: sgx

---

kind: pipeline
name: http_req-sgx-1604-sw

steps:
- name: sim-compile
image: baiduxlab/sgx-rust:1604-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- SGX_MODE=SW make -C sgx/http_req-sgx-test

- name: sim-test
image: baiduxlab/sgx-rust:1604-1.1.3
commands:
- . /opt/sgxsdk/environment
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

node:
instance: sgx

---

kind: pipeline
name: http_req-sgx-1604-hw

steps:
- name: hw-compile
image: baiduxlab/sgx-rust:1604-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- make -C sgx/http_req-sgx-test

- name: hw-test
image: baiduxlab/sgx-rust:1604-1.1.3
privileged: true
volumes:
- name: isgx
path: /dev/isgx
- name: aesmd
path: /var/run/aesmd/aesm.socket
commands:
- . /opt/sgxsdk/environment
- ls -l /dev/isgx
- ls -l /var/run/aesmd/aesm.socket
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

volumes:
- name: isgx
host:
path: /dev/isgx
- name: aesmd
host:
path: /var/run/aesmd/aesm.socket

node:
instance: sgx

---

kind: pipeline
name: http_req-sgx-1804-sw

steps:
- name: sim-compile
image: baiduxlab/sgx-rust:1804-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- SGX_MODE=SW make -C sgx/http_req-sgx-test

- name: sim-test
image: baiduxlab/sgx-rust:1804-1.1.3
commands:
- . /opt/sgxsdk/environment
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

node:
instance: sgx

---

kind: pipeline
name: http_req-sgx-1804-hw

steps:
- name: hw-compile
image: baiduxlab/sgx-rust:1804-1.1.3
commands:
- . /opt/sgxsdk/environment
- . /root/.cargo/env
- make -C sgx/http_req-sgx-test

- name: hw-test
image: baiduxlab/sgx-rust:1804-1.1.3
privileged: true
volumes:
- name: isgx
path: /dev/isgx
- name: aesmd
path: /var/run/aesmd/aesm.socket
commands:
- . /opt/sgxsdk/environment
- ls -l /dev/isgx
- ls -l /var/run/aesmd/aesm.socket
- cd sgx/http_req-sgx-test/bin && ./app | tee result.txt && grep " 0 failed" result.txt

volumes:
- name: isgx
host:
path: /dev/isgx
- name: aesmd
host:
path: /var/run/aesmd/aesm.socket

node:
instance: sgx
5 changes: 5 additions & 0 deletions .github/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "1"
rules:
- base: master
upstream: jayjamesjay:master
mergeMethod: none
15 changes: 0 additions & 15 deletions .github/workflows/rust.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
**/*.rs.bk
/.idea
/.idea
Cargo.lock
Loading

0 comments on commit 5d0f747

Please sign in to comment.