-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
79 lines (70 loc) · 2.02 KB
/
.gitlab-ci.yml
File metadata and controls
79 lines (70 loc) · 2.02 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
stages:
- build
.build:
stage: build
tags:
- docker
script:
# Install dependencies
- apt update && apt install -y
build-essential
cmake
git
zlib1g-dev
wget
# Build boost
- boost="boost_"$BOOST_MAJOR"_"$BOOST_MINOR"_"$BOOST_PATCH
- BOOST_VERSION=$BOOST_MAJOR"."$BOOST_MINOR"."$BOOST_PATCH
- wget --quiet "https://archives.boost.io/release/"$BOOST_VERSION"/source/"$boost".tar.bz2"
- tar -xjf $boost".tar.bz2"
- cd $boost
- ./bootstrap.sh
- b2_options="--with-system --with-test --with-date_time --with-atomic --with-thread --with-chrono --with-context"
- if [[ $BOOST_USE_STATIC_LIBS == "ON" ]]; then b2_options="--link=static "$b2_options; fi
- if [[ $BOOST_MINOR -lt 80 ]]; then b2_options=$b2_options" --with-coroutine"; fi
- ./b2 -j3 -d+0 $b2_options
- cd ..
# Build examples
- cmake -S example -B build/example
-DBOOST_VERSION=$BOOST_VERSION
-DBOOST_ROOT=$CI_PROJECT_DIR"/"$boost
-DBoost_USE_STATIC_LIBS=${BOOST_USE_STATIC_LIBS}
- cmake --build build/example
# Build tests
- cmake -S test -B build/test
-DCMAKE_CXX_FLAGS=-isystem\ $CI_PROJECT_DIR"/"$boost
- cmake --build build/test
# Run the tests
- ./build/test/test-url --log_level=test_suite
boost-1.79-static-libs-off:
extends: ".build"
image: debian:bookworm
variables:
BOOST_MAJOR: "1"
BOOST_MINOR: "79"
BOOST_PATCH: "0"
BOOST_USE_STATIC_LIBS: "OFF"
boost-1.87-static-libs-off:
extends: ".build"
image: debian:bookworm
variables:
BOOST_MAJOR: "1"
BOOST_MINOR: "87"
BOOST_PATCH: "0"
BOOST_USE_STATIC_LIBS: "OFF"
boost-1.79-static-libs-on:
extends: ".build"
image: debian:bookworm
variables:
BOOST_MAJOR: "1"
BOOST_MINOR: "79"
BOOST_PATCH: "0"
BOOST_USE_STATIC_LIBS: "ON"
boost-1.87-static-libs-on:
extends: ".build"
image: debian:bookworm
variables:
BOOST_MAJOR: "1"
BOOST_MINOR: "87"
BOOST_PATCH: "0"
BOOST_USE_STATIC_LIBS: "ON"