forked from haasn/libplacebo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
206 lines (193 loc) · 5.92 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
stages:
- compile
- test
- sanitize
variables:
GIT_SUBMODULE_STRATEGY: recursive
IMAGE_UBUNTU_JAMMY: registry.videolan.org/libplacebo-ubuntu-jammy:20230131170906
IMAGE_UBUNTU_JAMMY_LLVMPIPE: registry.videolan.org/libplacebo-ubuntu-jammy:20230130122426
IMAGE_UBUNTU_JAMMY_AARCH: registry.videolan.org/libplacebo-ubuntu-jammy-aarch64:20230203024122
linux:
image: $IMAGE_UBUNTU_JAMMY
stage: compile
tags:
- docker
- amd64
script:
- meson build --buildtype release
--werror
-Dtests=true
-Dshaderc=enabled
-Dglslang=enabled
- ninja -C build
static:
image: $IMAGE_UBUNTU_JAMMY
stage: compile
tags:
- docker
- amd64
script:
- meson build --buildtype release
--default-library static
--werror
-Dshaderc=enabled
-Dglslang=enabled
- ninja -C build
win32:
image: $IMAGE_UBUNTU_JAMMY
stage: compile
tags:
- docker
- amd64
script:
- meson build --buildtype release
--werror
-Dtests=true
-Dd3d11=enabled
--cross-file /opt/crossfiles/i686-w64-mingw32.meson
- ninja -C build
- cd build && meson test -t 5 -v --num-processes=1
win64:
image: $IMAGE_UBUNTU_JAMMY
stage: compile
tags:
- docker
- amd64
script:
- meson build --buildtype release
--werror
-Dtests=true
-Dd3d11=enabled
--cross-file /opt/crossfiles/x86_64-w64-mingw32.meson
- ninja -C build
- cd build && meson test -t 5 -v --num-processes=1
aarch64:
image: $IMAGE_UBUNTU_JAMMY_AARCH
stage: compile
tags:
- docker
- aarch64
script:
- meson build --buildtype release --werror -Dtests=true
- ninja -C build
- cd build && meson test -t 5 -v --num-processes=1
macos:
stage: compile
tags:
- amd64
- monterey
script:
- meson build --buildtype release
-Ddefault_library=both
-Dtests=true
--werror
- ninja -C build
- cd build && meson test -t 5 -v --num-processes=1
scan:
image: $IMAGE_UBUNTU_JAMMY
stage: compile
tags:
- docker
- amd64
script:
- env CC=clang meson build --buildtype debugoptimized
--werror
-Dtests=true
-Ddemos=true
-Dbench=true
-Dshaderc=enabled
-Dglslang=enabled
- ninja -C build scan-build
llvmpipe:
image: $IMAGE_UBUNTU_JAMMY_LLVMPIPE
stage: test
tags:
- docker
- amd64
script:
- meson build --buildtype release
--werror
-Dtests=true
-Ddemos=false
-Dc_args='-DCI_ALLOW_SW'
-Dshaderc=enabled
-Dglslang=enabled
- ninja -C build
- cd build && meson test -t 5 -v --num-processes=1
gpu:
image: $IMAGE_UBUNTU_JAMMY
stage: test
tags:
- gpu
script:
- meson build --buildtype release
--werror
-Dtests=true
-Ddemos=false
-Ddebug-abort=true
-Dshaderc=disabled
-Db_coverage=true
- ninja -C build
- vulkaninfo
- cd build && meson test -t 5 -v --num-processes=1
- ninja coverage-html
- mv meson-logs/coveragereport ../coverage
- ninja coverage-xml
- grep -Eo 'line-rate="[^"]+"' meson-logs/coverage.xml | head -n 1 |
grep -Eo '[0-9.]+' | awk '{ print "coverage:", $1 * 100 } '
coverage: '/^coverage: (\d+.\d+)$/'
artifacts:
expose_as: 'Coverage HTML report'
paths:
- coverage/
reports:
coverage_report:
coverage_format: cobertura
path: build/meson-logs/coverage.xml
asan:
image: $IMAGE_UBUNTU_JAMMY
stage: sanitize
tags:
- gpu
script:
- meson build --buildtype debugoptimized
-Dtests=true
-Ddemos=false
-Dshaderc=disabled
-Db_sanitize=address
- ninja -C build
- cd build && time meson test -t 5 -v --num-processes=1
msan:
image: $IMAGE_UBUNTU_JAMMY
stage: sanitize
tags:
- gpu
variables:
MSAN_OPTIONS: 'exitcode=1'
script:
- env CC=clang meson build --buildtype debugoptimized
-Dtests=true
-Ddemos=false
-Dc_args='-DMSAN'
-Dglslang=disabled
-Db_sanitize=memory
-Db_lundef=false
- ninja -C build
- cd build && time meson test -t 5 -v --num-processes=1
ubsan:
image: $IMAGE_UBUNTU_JAMMY
stage: sanitize
tags:
- gpu
variables:
UBSAN_OPTIONS: 'print_stacktrace=1:halt_on_error=1'
script:
- env CC=clang meson build --buildtype debugoptimized
-Dtests=true
-Ddemos=false
-Dc_args='-fPIE'
-Dglslang=disabled
-Db_sanitize=undefined
-Db_lundef=false
- ninja -C build
- cd build && time meson test -t 5 -v --num-processes=1