forked from veracruz-project/veracruz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
129 lines (116 loc) · 2.67 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Authors: Veracruz Team, Arm Research
# CI for Veracruz project.
# Please use a runner on a machine with SGX enable and add the following configuration:
# privileged = true
# devices = ["/dev/isgx", "/dev/mei0"]
#
image: "$DOCKER_IMAGE_PATH"
variables:
CARGO_HOME: $VERACRUZ_PATH/.cargo
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: 1
before_script:
#################################################
## project specific setting
#################################################
- cd /work/rust-optee-trustzone-sdk && source environment && unset CC
# return the veracruz dir
- cd $VERACRUZ_PATH
- LD_LIBRARY_PATH=/opt/intel/libsgx-enclave-common/aesm /opt/intel/libsgx-enclave-common/aesm/aesm_service; sleep inf &
stages:
- sdk-build
- enclave-build
- test
cache: &global_cache
key: GLOBAL_CACHE
paths:
- "$VERACRUZ_PATH/**/target/**"
- "$VERACRUZ_PATH/.cargo/**"
- "$VERACRUZ_PATH/test-collateral/**"
policy: pull-push
build:sdk:
stage: sdk-build
script:
- make clean
- make sdk
cache:
<<: *global_cache
key: SDK
policy: push
build:sgx:
stage: enclave-build
script:
- make clean
- make sgx
needs:
- build:sdk
cache:
<<: *global_cache
key: SGX
policy: push
build:trustzone:
stage: enclave-build
script:
- make clean
- make trustzone
needs:
- build:sdk
cache:
<<: *global_cache
key: TRUSTZONE
policy: push
test:sgx:durango:
stage: test
script: make sgx-durango-test
needs:
- build:sgx
cache:
<<: *global_cache
key: SGX
policy: pull
test:trustzone:durango:
stage: test
script: make trustzone-durango-test
needs:
- build:trustzone
cache:
<<: *global_cache
key: TRUSTZONE
policy: pull
test:sgx:sinaloa:
stage: test
script: make sgx-sinaloa-test
needs:
- build:sgx
cache:
<<: *global_cache
key: SGX
policy: pull
test:trustzone:sinaloa:
stage: test
script: make trustzone-sinaloa-test
needs:
- build:trustzone
cache:
<<: *global_cache
key: TRUSTZONE
policy: pull
test:sgx:veracruz:
stage: test
script: make sgx-veracruz-test
needs:
- build:sgx
cache:
<<: *global_cache
key: SGX
policy: pull
test:trustzone:veracruz:
stage: test
script: make trustzone-veracruz-test
needs:
- build:trustzone
cache:
<<: *global_cache
key: TRUSTZONE
policy: pull