-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
55 lines (52 loc) · 1.62 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
stages:
- build
- test
variables:
BUILD_TYPE: Release
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_FORCE_HTTPS: "true"
build:
stage: build
image: ubuntu:latest
script:
- apt update -y
# C++, Boost, and essentials
- apt install software-properties-common lsb-release wget gnupg -y
- apt install libtool autoconf unzip wget -y
- apt install build-essential g++ python3-dev autotools-dev libicu-dev libbz2-dev libboost-all-dev libzstd-dev -y
# CMake
- wget https://cmake.org/files/v3.28/cmake-3.28.0-linux-x86_64.sh
- chmod u+x cmake-3.28.0-linux-x86_64.sh
- ./cmake-3.28.0-linux-x86_64.sh --skip-license --prefix=/usr/local
# LLVM
- wget https://apt.llvm.org/llvm.sh
- chmod u+x llvm.sh
- ./llvm.sh 17
# Java
- apt install default-jre -y
# Building
- cmake -B $CI_PROJECT_DIR/build -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- cmake --build $CI_PROJECT_DIR/build --config $BUILD_TYPE
artifacts:
paths:
- build/
test:
stage: test
image: ubuntu:latest
script:
- apt update -y
- apt install software-properties-common lsb-release wget gnupg -y
- apt install build-essential g++ python3-dev autotools-dev libicu-dev libbz2-dev libboost-all-dev libzstd-dev -y
# LLVM
- wget https://apt.llvm.org/llvm.sh
- chmod u+x llvm.sh
- ./llvm.sh 17
# CMake
- wget https://cmake.org/files/v3.28/cmake-3.28.0-linux-x86_64.sh
- chmod u+x cmake-3.28.0-linux-x86_64.sh
- ./cmake-3.28.0-linux-x86_64.sh --skip-license --prefix=/usr/local
# Run the test
- cd build
- ctest -C $BUILD_TYPE --verbose
dependencies:
- build