blob: 9a3c02308050318dc0a5cabd91e038d64d6e2392 (
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
|
#!/bin/bash
set -eux
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y \
ca-certificates
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
apt-get update
# Ephemeral packages (installed for this script and removed again at the end)
EPHEMERAL="
bzip2
curl
libpciaccess-dev
meson
unzip
"
apt-get install -y \
bison \
ccache \
cmake \
codespell \
flake8 \
flex \
freeglut3-dev \
g++-multilib \
gcc-multilib \
gettext \
git \
glslang-tools \
isort \
jq \
libdrm-dev \
libegl1-mesa-dev \
libgbm-dev \
libglvnd-dev \
libvulkan-dev \
libwaffle-dev \
libwayland-dev \
libxcb-dri2-0-dev \
libxkbcommon-dev \
libxrender-dev \
mingw-w64 \
mypy \
ninja-build \
ocl-icd-opencl-dev \
pkg-config \
python3 \
python3-dev \
python3-jsonschema \
python3-mako \
python3-mock \
python3-numpy \
python3-packaging \
python3-pil \
python3-pip \
python3-psutil \
python3-pytest \
python3-pytest-mock \
python3-pytest-timeout \
python3-requests \
python3-requests-mock \
python3-setuptools \
python3-wheel \
python3-yaml \
pylint \
tox \
waffle-utils \
$EPHEMERAL
pip3 install pytest-pythonpath
pip3 install pytest-raises
# Download Waffle artifacts. See also
# https://gitlab.freedesktop.org/mesa/waffle/-/merge_requests/89
# https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html#downloading-the-latest-artifacts
for target in mingw32 mingw64
do
mkdir -p /opt/waffle/$target
curl -s -L "https://gitlab.freedesktop.org/mesa/waffle/-/jobs/artifacts/${WAFFLE_BRANCH:-maint-1.7}/raw/publish/$target/waffle-$target.zip?job=cmake-mingw" -o /tmp/waffle-$target.zip
unzip -qo /tmp/waffle-$target.zip -d /opt/waffle/$target
test -d /opt/waffle/$target/waffle
rm /tmp/waffle-$target.zip
done
.gitlab-ci/build-wayland.sh
apt-get purge -y $EPHEMERAL
apt-get autoremove -y --purge
|