-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
.gitlab-ci.yml
186 lines (174 loc) · 5.26 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
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
stages:
- compile
- test
- sanitize
variables:
GIT_SUBMODULE_STRATEGY: recursive
IMAGE_UBUNTU_JAMMY: registry.videolan.org/libplacebo-ubuntu-jammy:20230730213642
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
-Ddebug-abort=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
-Ddebug-abort=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
-Ddebug-abort=true
-Dc_args='-mmacosx-version-min=10.11 -Wunguarded-availability'
--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 CXX=clang++ CC_LD=lld CXX_LD=lld
meson build --buildtype debugoptimized
--werror
-Dtests=true
-Dbench=true
-Dshaderc=enabled
-Dglslang=enabled
- ninja -C build scan-build
llvmpipe:
image: $IMAGE_UBUNTU_JAMMY
stage: test
tags:
- docker
- amd64
script:
- meson build --buildtype release
--werror
-Dtests=true
-Ddebug-abort=true
-Dc_args='-DCI_ALLOW_SW -DCI_MAXGL'
-Dshaderc=enabled
-Dglslang=enabled
- ninja -C build
- cd build && meson test -t 20 -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=enabled
-Dglslang=enabled
-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
sanitize:
image: $IMAGE_UBUNTU_JAMMY
stage: sanitize
tags:
- gpu
variables:
UBSAN_OPTIONS: 'print_stacktrace=1:halt_on_error=1'
script:
- env CC=clang CXX=clang++ CC_LD=lld CXX_LD=lld
meson build --buildtype debugoptimized
--werror
-Dtests=true
-Ddebug-abort=true
-Dc_args='-DCI_MAXGL -Wno-deprecated-declarations'
-Db_sanitize=address,undefined
-Db_lundef=false
-Dshaderc=enabled
- ninja -C build
- cd build && time meson test -t 5 -v --num-processes=1