-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
254 lines (235 loc) · 6.29 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
stages:
- analysis
- build
- test
before_script:
- hostname
- whoami
# - pwd
- git submodule sync --recursive
- git submodule update --init --recursive
analysis-cppcheck:
stage: analysis
artifacts:
name: analysis-cppcheck-logs
when: always
paths:
- cppcheck/
tags:
- cppcheck
script:
- ./ci/analysis-cppcheck.sh
build-linux-gcc:
stage: build
tags:
- linux
- gcc
- cmake
- x86
- systemc
artifacts:
paths:
- ./examples/bootstrap/build_linux_gcc/bin/
- ./examples/factory/build_linux_gcc/bin/
- ./examples/systemc/build_linux_gcc/bin/
- ./examples/tasks/build_linux_gcc/bin/
script:
- export EXAMPLES="bootstrap tasks systemc factory"
- export CXX="g++"
- export CFLAGS="-Wall -funroll-loops -msse4.2 -Wno-deprecated-declarations"
- export BUILD="build_linux_gcc"
- source ./ci/tools/threads.sh
- source ./ci/tools/aff3ct-git-version.sh
- ./ci/build-linux-macos.sh
build-linux-clang:
stage: build
tags:
- linux
- clang
- cmake
- x86
- systemc
artifacts:
paths:
- ./examples/bootstrap/build_linux_clang/bin/
- ./examples/factory/build_linux_clang/bin/
- ./examples/systemc/build_linux_clang/bin/
- ./examples/tasks/build_linux_clang/bin/
script:
- export EXAMPLES="bootstrap tasks systemc factory"
- export CXX="clang++"
- export CFLAGS="-Wall -Wno-overloaded-virtual -funroll-loops -msse4.2 -Wno-deprecated-declarations"
- export BUILD="build_linux_clang"
- source ./ci/tools/threads.sh
- source ./ci/tools/aff3ct-git-version.sh
- ./ci/build-linux-macos.sh
build-linux-gcc-4.8:
stage: build
tags:
- linux
- gcc-4.8
- cmake
- systemc
artifacts:
paths:
- ./examples/bootstrap/build_linux_gcc-4.8/bin/
- ./examples/factory/build_linux_gcc-4.8/bin/
- ./examples/systemc/build_linux_gcc-4.8/bin/
- ./examples/tasks/build_linux_gcc-4.8/bin/
script:
- export EXAMPLES="bootstrap tasks systemc factory"
- export CXX="g++-4.8"
- export CFLAGS="-Wall -funroll-loops -msse4.2 -Wno-deprecated-declarations"
- export BUILD="build_linux_gcc-4.8"
- source ./ci/tools/threads.sh
- source ./ci/tools/aff3ct-git-version.sh
- ./ci/build-linux-macos.sh
build-linux-icpc:
stage: build
tags:
- linux
- icpc
- cmake
- x86
- systemc
artifacts:
paths:
- ./examples/bootstrap/build_linux_icpc/bin/
- ./examples/factory/build_linux_icpc/bin/
- ./examples/systemc/build_linux_icpc/bin/
- ./examples/tasks/build_linux_icpc/bin/
script:
- export EXAMPLES="bootstrap tasks systemc factory"
- export CXX="icpc"
- export CFLAGS="-Wall -funroll-loops -msse4.2 -Wno-deprecated-declarations -std=c++11"
- export BUILD="build_linux_icpc"
- source ./ci/tools/threads.sh
- source ./ci/tools/aff3ct-git-version.sh
- ./ci/build-linux-macos.sh
build-windows-gcc:
stage: build
tags:
- windows
- gcc
- cmake
artifacts:
paths:
- ./examples/bootstrap/build_windows_gcc/bin/
- ./examples/factory/build_windows_gcc/bin/
- ./examples/tasks/build_windows_gcc/bin/
script:
- set "EXAMPLES=bootstrap tasks factory"
- set "CFLAGS=-Wall -Wno-misleading-indentation -Wno-deprecated-declarations -funroll-loops -mavx"
- set "BUILD=build_windows_gcc"
- call ./ci/tools/threads.bat
- call ./ci/tools/aff3ct-git-version.bat
- ./ci/build-windows-gcc.bat
build-windows-msvc:
stage: build
tags:
- windows
- msvc
- cmake
artifacts:
paths:
- ./examples/bootstrap/build_windows_msvc/bin/
- ./examples/factory/build_windows_msvc/bin/
- ./examples/tasks/build_windows_msvc/bin/
script:
- set "EXAMPLES=bootstrap tasks factory"
- set "CFLAGS=-D_CRT_SECURE_NO_DEPRECATE /EHsc /arch:AVX"
- set "BUILD=build_windows_msvc"
- call ./ci/tools/threads.bat
- call ./ci/tools/aff3ct-git-version.bat
- ./ci/build-windows-msvc.bat
build-macos-clang:
stage: build
tags:
- macos
- apple-clang
- cmake
- x86
artifacts:
paths:
- ./examples/bootstrap/build_macos_clang/bin/
- ./examples/factory/build_macos_clang/bin/
- ./examples/tasks/build_macos_clang/bin/
script:
- export EXAMPLES="bootstrap tasks factory"
- export CXX="clang++"
- export CFLAGS="-Wall -Wno-overloaded-virtual -funroll-loops -msse4.2"
- export BUILD="build_macos_clang"
- source ./ci/tools/threads.sh
- source ./ci/tools/aff3ct-git-version.sh
- ./ci/build-linux-macos.sh
test-linux-run-bootstrap:
stage: test
tags:
- linux
- sse4.2
script:
- ./ci/test-linux-macos-run.sh bootstrap " " build_linux_gcc build_linux_gcc-4.8 build_linux_clang build_linux_icpc
test-linux-run-systemc:
stage: test
tags:
- linux
- sse4.2
- systemc
script:
- ./ci/test-linux-macos-run.sh systemc " " build_linux_gcc build_linux_clang build_linux_icpc
test-linux-run-tasks:
stage: test
tags:
- linux
- sse4.2
script:
- ./ci/test-linux-macos-run.sh tasks " " build_linux_gcc build_linux_gcc-4.8 build_linux_clang build_linux_icpc
test-linux-run-factory:
stage: test
tags:
- linux
- sse4.2
script:
- ./ci/test-linux-macos-run.sh factory "-K 32 -N 128" build_linux_gcc build_linux_gcc-4.8 build_linux_clang build_linux_icpc
test-macos-run-bootstrap:
stage: test
tags:
- macos
- sse4.2
script:
- ./ci/test-linux-macos-run.sh bootstrap " " build_macos_clang
test-macos-run-tasks:
stage: test
tags:
- macos
- sse4.2
script:
- ./ci/test-linux-macos-run.sh tasks " " build_macos_clang
test-macos-run-factory:
stage: test
tags:
- macos
- sse4.2
script:
- ./ci/test-linux-macos-run.sh factory "-K 32 -N 128" build_macos_clang
# test-windows-run-bootstrap:
# stage: test
# tags:
# - windows
# - avx
# script:
# - ./ci/test-windows-run.bat bootstrap " " build_windows_gcc build_windows_msvc
# test-windows-run-tasks:
# stage: test
# tags:
# - windows
# - avx
# script:
# - ./ci/test-windows-run.bat tasks " " build_windows_gcc build_windows_msvc
# test-windows-run-factory:
# stage: test
# tags:
# - windows
# - avx
# script:
# - ./ci/test-windows-run.bat factory "-K 32 -N 128" build_windows_gcc build_windows_msvc