From 4d375e400c903fab4b3cce39ba88de563a51e737 Mon Sep 17 00:00:00 2001 From: Elliu <goyard.louis@gmail.com> Date: Thu, 28 Oct 2021 19:16:16 +0200 Subject: [PATCH] Update .gitlab-ci.yml file : add clang and gcc build --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..bfba6c60 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,23 @@ +image: debian:latest + +.common_build: + before_script: + - apt update && apt -y install make autoconf qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libavutil-dev libavcodec-dev libavformat-dev libmpv-dev cmake clang clang-format gcc g++ libomp-dev + script: + - mkdir build && cd build + - CC=${c_compiler} CXX=${cxx_compiler} cmake .. && make + + +build-clang: + stage: build + extends: .common_build + variables: + c_compiler: clang + cxx_compiler: clang++ + +build-gcc: + stage: build + extends: .common_build + variables: + c_compiler: gcc + cxx_compiler: g++ -- GitLab