forked from manticoresoftware/columnar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackaging.yml
298 lines (235 loc) · 5.4 KB
/
packaging.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
stages:
- build
- repoupload
# global settings will be applied to all jobs
variables:
CMAKE_INTERPROCEDURAL_OPTIMIZATION: 1
VERBOSE: 1
DIAGNOSTIC: 1
workflow:
rules:
- when: always
# ==================== .helper generic build ======================
.build:
stage: build
interruptible: true
rules:
- if: $CI_MERGE_REQUEST_ID
when: manual
- if: $CI_MERGE_REQUEST_ID == null
needs: [ ]
tags:
- docker
image: manticoresearch/external_toolchain:clang15_cmake3263
variables:
CACHEB: $CI_PROJECT_DIR/cache
arch: x86_64
boost: boost_nov22
sysroot: roots_nov22
script:
- mkdir build && cd build
- cmake -DPACK=1 $XTRAFLAGS ..
- cmake --build . --target package
cache:
key: release_$DISTR$arch
paths:
- $CI_PROJECT_DIR/cache
artifacts:
paths:
- build/manticore*deb
- build/manticore-*.tar.gz
- build/manticore-*.zip
- build/manticore-*.exe
when: on_success
expire_in: 12 hrs
.build_rhel:
extends: [ .build ]
before_script:
- ln -s $(pwd) /builds_manticoresearch_dev_usr_src_debug_manticore_component_src_0
- cd /builds_manticoresearch_dev_usr_src_debug_manticore_component_src_0
artifacts:
paths:
- build/manticore*rpm
# ==================== .helper generic and specific collect of built artifacts ======================
.collect_job:
variables:
GIT_STRATEGY: fetch
stage: repoupload
interruptible: true
cache: { }
tags:
- dev-host
rules:
- if: $CI_MERGE_REQUEST_ID
when: manual
allow_failure: true
- if: $CI_COMMIT_BRANCH =~ /^columnar-.*$/
when: manual
- if: $CI_COMMIT_BRANCH == "master"
when: on_success
.collect_deb:
extends: [ .collect_job ]
script:
- wget https://raw.githubusercontent.com/manticoresoftware/repo_scripts/main/upload_repo_deb
- chmod +x upload_repo_deb
- /bin/bash ./upload_repo_deb
.collect_rpm:
extends: [ .collect_job ]
script:
- wget https://raw.githubusercontent.com/manticoresoftware/repo_scripts/main/upload_repo_rpm
- chmod +x upload_repo_rpm
- /bin/bash ./upload_repo_rpm
.collect_arc:
extends: [ .collect_job ]
script:
- wget https://raw.githubusercontent.com/manticoresoftware/repo_scripts/main/upload_repo_arc
- chmod +x upload_repo_arc
- /bin/bash ./upload_repo_arc
# ==================== Mac OS X ======================
osx:
extends: [ .build ]
variables:
DISTR: macos
osxm1:
extends: [ osx ]
variables:
arch: arm64
collect_osx:
extends: [ .collect_arc ]
needs: [ osx, osxm1 ]
# ==================== Windows ======================
windows:
extends: [ .build ]
variables:
arch: x64
DISTR: windows
collect_windows:
extends: [ .collect_arc ]
needs: [ windows ]
# ==================== Centos 7 ======================
rhel7:
extends: [ .build_rhel ]
variables:
DISTR: rhel7
rhel7_arm:
extends: [ rhel7 ]
variables:
arch: aarch64
collect_rhel7:
extends: [ .collect_rpm ]
needs: [ rhel7, rhel7_arm ]
variables:
DISTRO: 7
# ==================== Centos 8 ======================
rhel8:
extends: [ .build_rhel ]
variables:
DISTR: rhel8
rhel8_arm:
extends: [ rhel8 ]
variables:
arch: aarch64
collect_rhel8:
extends: [ .collect_rpm ]
needs: [ rhel8, rhel8_arm ]
variables:
DISTRO: 8
# ==================== RHEL 9 ======================
rhel9:
extends: [ .build_rhel ]
variables:
DISTR: rhel9
rhel9_arm:
extends: [ rhel9 ]
variables:
arch: aarch64
collect_rhel9:
extends: [ .collect_rpm ]
needs: [ rhel9, rhel9_arm ]
variables:
DISTRO: 9
# ==================== Debian-based ======================
# ==================== Ubuntu Bionic ======================
bionic:
extends: [ .build ]
variables:
DISTR: bionic
bionic_arm:
extends: [ bionic ]
variables:
arch: aarch64
collect_bionic:
extends: [ .collect_deb ]
needs: [ bionic, bionic_arm ]
variables:
DISTRO: bionic
# ==================== Ubuntu Focal ======================
focal:
extends: [ .build ]
variables:
DISTR: focal
focal_arm:
extends: [ focal ]
variables:
arch: aarch64
collect_focal:
extends: [ .collect_deb ]
needs: [ focal, focal_arm ]
variables:
DISTRO: focal
# ==================== Debian Buster ======================
buster:
extends: [ .build ]
variables:
DISTR: buster
buster_arm:
extends: [ buster ]
variables:
arch: aarch64
collect_buster:
extends: [ .collect_deb ]
needs: [ buster, buster_arm ]
variables:
DISTRO: buster
# ==================== Debian Bullseye ======================
bullseye:
extends: [ .build ]
variables:
DISTR: bullseye
bullseye_arm:
extends: [ bullseye ]
variables:
arch: aarch64
collect_bullseye:
extends: [ .collect_deb ]
needs: [ bullseye, bullseye_arm ]
variables:
DISTRO: bullseye
# ==================== Ubuntu Jammy ======================
jammy:
extends: [ .build ]
variables:
DISTR: jammy
jammy_arm:
extends: [ jammy ]
variables:
arch: aarch64
collect_jammy:
extends: [ .collect_deb ]
needs: [ jammy, jammy_arm ]
variables:
DISTRO: jammy
# ==================== Debian Bookworm ======================
bookworm:
extends: [ .build ]
variables:
DISTR: bookworm
bookworm_arm:
extends: [ bookworm ]
variables:
arch: aarch64
collect_bookworm:
extends: [ .collect_deb ]
needs: [ bookworm, bookworm_arm ]
variables:
DISTRO: bookworm