Add clang build to linux CI
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
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0fc7fe6..5140aa7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,7 +86,8 @@ linux autotools:
--with-bzip2=no \
--with-harfbuzz=no \
--with-png=no \
- --with-zlib=no
+ --with-zlib=no \
+ CC=gcc
make -j$(nproc) && make install
@@ -98,7 +99,21 @@ linux autotools libs:
--with-bzip2=yes \
--with-harfbuzz=yes \
--with-png=yes \
- --with-zlib=yes
+ --with-zlib=yes \
+ CC=gcc
+
+ make -j$(nproc) && make install
+
+linux autotools libs clang:
+ extends: '.build linux common'
+ script: |
+ ./autogen.sh
+ ./configure --with-brotli=yes \
+ --with-bzip2=yes \
+ --with-harfbuzz=yes \
+ --with-png=yes \
+ --with-zlib=yes \
+ CC=clang
make -j$(nproc) && make install