5590: Add basic extensible gitlab CI r=def- a=ChillerDragon

Add a very simple CI for gitlab. This is for ddnet forks that are hosted on gitlab. They can quickly get started with a simple ddnet pipeline that checks the build. And can be extend by adding files in `.gitlab/*.yml` without getting git conflicts with this upstream repository.

Co-authored-by: ChillerDragon <ChillerDragon@gmail.com>
This commit is contained in:
bors[bot] 2022-07-08 16:26:24 +00:00 committed by GitHub
commit f6febca706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

2
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,2 @@
include: '.gitlab/*.yml'

25
.gitlab/build.yml Normal file
View file

@ -0,0 +1,25 @@
image: ubuntu:22.04
stages:
- test
build_cmake:
before_script:
- apt-get update -y
- apt-get upgrade -y
- apt-get install
pkg-config
clang
cmake ninja-build
libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libvulkan-dev
glslang-tools spirv-tools libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
libx264-dev libpng-dev
libcurl4 libcurl3-gnutls libcurl4-openssl-dev libcurlpp-dev
libogg-dev libopus-dev libopusfile-dev
valgrind -y
stage: test
script:
- mkdir build && cd build
- cmake ..
- make -j$(nproc)