[glibmm: 1/2] CI: Adding build and test job for clang compiler
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm: 1/2] CI: Adding build and test job for clang compiler
- Date: Wed, 9 Dec 2020 15:21:37 +0000 (UTC)
commit f593e157e70729fced1266fd7775988024e0b1b5
Author: Pavlo Solntsev <p sun fun gmail com>
Date: Tue Dec 8 12:39:26 2020 -0600
CI: Adding build and test job for clang compiler
Release build and test was added for clang compiler.
.gitlab-ci.yml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3abec1e3..c3fe20f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,6 +25,7 @@ variables:
meson
ninja-build
glib-networking
+ clang
GIO_EXTRA_MODULES: "/usr/lib/x86_64-linux-gnu/gio/modules"
GIT_SUBMODULE_STRATEGY: normal
@@ -97,6 +98,23 @@ release_gcc_10_build:
- _build/meson-logs/meson-log.txt
expire_in: 1 week
+release_clang_build:
+ stage: build
+ script:
+ - mkdir _build && cd _build
+# -Ddebug=false + -Doptimization=3 correspond to -Dbuildtype=release
+ - CC=clang CXX=clang++ meson --prefix=/usr --libdir=lib -Ddebug=false -Doptimization=3 -Dwarnings=fatal
+ - meson compile
+ - meson test
+ - meson install
+ allow_failure: true
+ artifacts:
+ when: on_failure
+ paths:
+ - _build/meson-logs/testlog.txt
+ - _build/meson-logs/meson-log.txt
+ expire_in: 1 week
+
pages:
stage: deploy
script:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]