blob: 0a852c4369f01a4b702d7a95fe1253165425daf2 (
plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
variables:
FDO_UPSTREAM_REPO: mesa/demos
include:
- project: 'freedesktop/ci-templates'
ref: 3f37cc0e461f5b0c815409bf6f55759f26a74e9c
file: '/templates/debian.yml'
stages:
- container
- build
# When & how to run the CI
.ci-run-policy:
retry:
max: 2
when:
- runner_system_failure
# Cancel CI run if a newer commit is pushed to the same branch
interruptible: true
# CONTAINERS
# Debian 11 based x86 build image
x86_build:
stage: container
extends:
- .fdo.container-build@debian
- .ci-run-policy
variables:
FDO_DISTRIBUTION_VERSION: bullseye-slim
FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
# No need to pull the whole repo to build the container image
GIT_STRATEGY: none
# /!\ Bump the TAG when modifying the DEBS
FDO_DISTRIBUTION_TAG: &x86_build "2022-04-30"
FDO_DISTRIBUTION_PACKAGES: >-
build-essential
autoconf
automake
libtool
make
pkg-config
cmake
ninja-build
mingw-w64
extra-cmake-modules
freeglut3-dev
libdrm-dev
libegl-dev
libgbm-dev
libgl-dev
libgles-dev
libudev-dev
libwayland-dev
libx11-dev
libxcb1-dev
wayland-protocols
.use-x86_build:
variables:
TAG: *x86_build
image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
needs:
- x86_build
# BUILD
.build:
stage: build
extends:
- .ci-run-policy
variables:
GIT_DEPTH: 10
.cmake-build:
extends:
- .build
script:
- cmake -S . -B _build
-DCMAKE_INSTALL_PREFIX=$PWD/install
-DCMAKE_BUILD_TYPE=Debug
-G Ninja
- ninja -C _build -j4
- ninja -C _build install
.autotools-build:
extends:
- .build
script:
- ./autogen.sh
- make -j4
- make check
- DESTDIR=$PWD/install make install
cmake:
extends:
- .use-x86_build
- .cmake-build
cmake-mingw:
extends:
- .use-x86_build
- .build
script:
- .gitlab-ci/build-mingw.sh
autotools:
extends:
- .use-x86_build
- .autotools-build
|