e6a1db2028f1709b678d7f700ff662e0c0d4d124
[mesa.git] / .gitlab-ci / container / x86_build-base.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 export DEBIAN_FRONTEND=noninteractive
7
8 apt-get install -y \
9 ca-certificates \
10 gnupg \
11 python3-pip \
12 python3-setuptools \
13 unzip \
14 wget
15
16 # Upstream LLVM package repository
17 apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
18 echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list
19
20 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
21 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
22
23 apt-get update
24
25 apt-get install -y --no-remove \
26 $STABLE_EPHEMERAL \
27 bison \
28 ccache \
29 clang-9 \
30 dpkg-cross \
31 flex \
32 g++ \
33 g++-mingw-w64-x86-64 \
34 gcc \
35 git \
36 libclang-9-dev \
37 libclc-dev \
38 libelf-dev \
39 libepoxy-dev \
40 libexpat1-dev \
41 libgtk-3-dev \
42 libomxil-bellagio-dev \
43 libpciaccess-dev \
44 libunwind-dev \
45 libva-dev \
46 libvdpau-dev \
47 libvulkan-dev \
48 libx11-dev \
49 libx11-xcb-dev \
50 libxdamage-dev \
51 libxext-dev \
52 libxml2-utils \
53 libxrandr-dev \
54 libxrender-dev \
55 libxshmfence-dev \
56 libxvmc-dev \
57 libxxf86vm-dev \
58 libz-mingw-w64-dev \
59 llvm-9-dev \
60 pkg-config \
61 python-mako \
62 python3-mako \
63 python3-pil \
64 python3-pip \
65 python3-requests \
66 python3-setuptools \
67 qemu-user \
68 scons \
69 wine64-development \
70 x11proto-dri2-dev \
71 x11proto-gl-dev \
72 x11proto-randr-dev \
73 xz-utils \
74 zlib1g-dev
75
76 apt-get install -y --no-remove -t buster-backports \
77 libclang-8-dev \
78 libllvm8 \
79 meson
80
81 # Needed for ci-fairy, this revision is able to upload files to MinIO
82 pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@6f5af7e5574509726c79109e3c147cee95e81366
83
84 # for the vulkan overlay layer
85 wget https://github.com/KhronosGroup/glslang/releases/download/SDK-candidate-26-Jul-2020/glslang-master-linux-Release.zip
86 unzip glslang-master-linux-Release.zip bin/glslangValidator
87 install -m755 bin/glslangValidator /usr/local/bin/
88 rm bin/glslangValidator glslang-master-linux-Release.zip
89
90
91 ############### Uninstall ephemeral packages
92
93 apt-get purge -y \
94 gnupg \
95 unzip
96
97 . .gitlab-ci/container/container_post_build.sh