-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
184 lines (164 loc) · 8.24 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
image: docker:stable
.tag_docker_target:
tags: &tag_docker_target_definition
- shell-builder
- linux
- big-storage
.tag_docker_qemu_target:
tags: &tag_docker_qemu_target_definition
- shell-builder
- linux
- big-storage
- qemu-support
.before_script_docker:
before_script: &before_script_docker_definition
- sudo chmod +x ./zed-docker/.ci/build_desktop_images.sh
- export ZED_SDK_MAJOR=$(grep "#define ZED_SDK_MAJOR_VERSION" ./lib/include/sl_zed/defines.hpp | tr -dc '0-9')
- export ZED_SDK_MINOR=$(grep "#define ZED_SDK_MINOR_VERSION" ./lib/include/sl_zed/defines.hpp | tr -dc '0-9')
#services:
# - docker:stable-dind
# .build_and_push_image_template: &build_image_push_definition
# stage: build_zed_docker
# script:
# - .ci/build_desktop_images.sh
# tags: *tag_docker_target_definition
# dependencies: []
# .build_and_push_image_jetson_template: &build_image_push_jetson_definition
# stage: build_zed_docker
# script:
# - ./zed-docker/.ci/build_jetson_images.sh
# tags: *tag_docker_qemu_target_definition
# dependencies: []
############################
# BUILD and PUSH
# U 18
u18-cuda10.2_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
- export CUDA_MAJOR="10"; export CUDA_MINOR="2"; export CUDA_MINOR_NO_PATCH="2"; export UBUNTU_RELEASE_YEAR="18";
- export IMAGE_VARIANT="gl-devel"; ./zed-docker/.ci/build_desktop_images.sh
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_desktop_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_desktop_images.sh
tags: *tag_docker_target_definition
dependencies: []
when: manual
u18-cuda11.8_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
- export CUDA_MAJOR="11"; export CUDA_MINOR="4.2"; export CUDA_MINOR_NO_PATCH="4"; export UBUNTU_RELEASE_YEAR="18";
- export IMAGE_VARIANT="gl-devel"; ./zed-docker/.ci/build_desktop_images.sh
- export CUDA_MAJOR="11"; export CUDA_MINOR="8.0"; export CUDA_MINOR_NO_PATCH="8";
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_desktop_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_desktop_images.sh
tags: *tag_docker_target_definition
dependencies: []
when: manual
## U 20
u20-cuda11.8_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
- export CUDA_MAJOR="11"; export CUDA_MINOR="4.2"; export CUDA_MINOR_NO_PATCH="4"; export UBUNTU_RELEASE_YEAR="20";
- export IMAGE_VARIANT="gl-devel"; ./zed-docker/.ci/build_desktop_images.sh
- export CUDA_MAJOR="11"; export CUDA_MINOR="8.0"; export CUDA_MINOR_NO_PATCH="8";
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_desktop_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_desktop_images.sh
tags: *tag_docker_target_definition
dependencies: []
when: manual
u20-cuda12.1_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
#- export CUDA_MAJOR="12"; export CUDA_MINOR="1.1"; export CUDA_MINOR_NO_PATCH="1"; export UBUNTU_RELEASE_YEAR="20";
#- export IMAGE_VARIANT="gl-devel"; ./zed-docker/.ci/build_desktop_images.sh
- export CUDA_MAJOR="12"; export CUDA_MINOR="1.1"; export CUDA_MINOR_NO_PATCH="1"; export UBUNTU_RELEASE_YEAR="20";
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_desktop_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_desktop_images.sh
tags: *tag_docker_target_definition
dependencies: []
when: manual
## U 22
u22-cuda11.8_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
#- export CUDA_MAJOR="11"; export CUDA_MINOR="7.0"; export CUDA_MINOR_NO_PATCH="7"; export UBUNTU_RELEASE_YEAR="22";
#- export IMAGE_VARIANT="gl-devel"; ./zed-docker/.ci/build_desktop_images.sh # does not exist on Ubuntu 22 yet
- export CUDA_MAJOR="11"; export CUDA_MINOR="8.0"; export CUDA_MINOR_NO_PATCH="8"; export UBUNTU_RELEASE_YEAR="22";
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_desktop_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_desktop_images.sh
tags: *tag_docker_target_definition
dependencies: []
when: manual
u22-cuda12.1_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
#- export CUDA_MAJOR="11"; export CUDA_MINOR="7.0"; export CUDA_MINOR_NO_PATCH="7"; export UBUNTU_RELEASE_YEAR="22";
#- export IMAGE_VARIANT="gl-devel"; ./zed-docker/.ci/build_desktop_images.sh # does not exist on Ubuntu 22 yet
- export CUDA_MAJOR="12"; export CUDA_MINOR="1.1"; export CUDA_MINOR_NO_PATCH="1"; export UBUNTU_RELEASE_YEAR="22";
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_desktop_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_desktop_images.sh
tags: *tag_docker_target_definition
dependencies: []
when: manual
### JETSON
## l4t 32.7
l4t32.7_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
- export JETPACK_MAJOR="4"; export JETPACK_MINOR="6.1"; export L4T_MAJOR_VERSION="32"; export L4T_MINOR_VERSION="7"; export L4T_PATCH_VERSION="1"; export L4T_BASE_IMAGE="l4t-base"
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="tools-devel"; ./zed-docker/.ci/build_jetson_images.sh
tags: *tag_docker_qemu_target_definition
dependencies: []
when: manual
## l4t 35.1
l4t35.1_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
- export JETPACK_MAJOR="5"; export JETPACK_MINOR="0.2"; export L4T_MAJOR_VERSION="35"; export L4T_MINOR_VERSION="1"; export L4T_PATCH_VERSION="0"; export L4T_BASE_IMAGE="l4t-jetpack"
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="tools-devel"; ./zed-docker/.ci/build_jetson_images.sh
tags: *tag_docker_qemu_target_definition
dependencies: []
when: manual
## l4t 35.2
l4t35.2_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
- export JETPACK_MAJOR="5"; export JETPACK_MINOR="1.0"; export L4T_MAJOR_VERSION="35"; export L4T_MINOR_VERSION="2"; export L4T_PATCH_VERSION="1"; export L4T_BASE_IMAGE="l4t-jetpack"
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="tools-devel"; ./zed-docker/.ci/build_jetson_images.sh
tags: *tag_docker_qemu_target_definition
dependencies: []
when: manual
## l4t 35.3
l4t35.3_push:
stage: build_zed_docker
before_script: *before_script_docker_definition
script:
- export JETPACK_MAJOR="5"; export JETPACK_MINOR="1.1"; export L4T_MAJOR_VERSION="35"; export L4T_MINOR_VERSION="3"; export L4T_PATCH_VERSION="1"; export L4T_BASE_IMAGE="l4t-jetpack"
- export IMAGE_VARIANT="devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-devel"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="py-runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="runtime"; ./zed-docker/.ci/build_jetson_images.sh
- export IMAGE_VARIANT="tools-devel"; ./zed-docker/.ci/build_jetson_images.sh
tags: *tag_docker_qemu_target_definition
dependencies: []
when: manual