a833dcda4b10f874ae492a336f869cf29234c71f
[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-requests \
65 qemu-user \
66 scons \
67 wine64-development \
68 x11proto-dri2-dev \
69 x11proto-gl-dev \
70 x11proto-randr-dev \
71 xz-utils \
72 zlib1g-dev
73
74 apt-get install -y --no-remove -t buster-backports \
75 libclang-8-dev \
76 libllvm8 \
77 meson
78
79 # Needed for ci-fairy, this revision is able to upload files to MinIO
80 pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@6f5af7e5574509726c79109e3c147cee95e81366
81
82 # for the vulkan overlay layer
83 wget https://github.com/KhronosGroup/glslang/releases/download/SDK-candidate-26-Jul-2020/glslang-master-linux-Release.zip
84 unzip glslang-master-linux-Release.zip bin/glslangValidator
85 install -m755 bin/glslangValidator /usr/local/bin/
86 rm bin/glslangValidator glslang-master-linux-Release.zip
87
88
89 ############### Uninstall ephemeral packages
90
91 apt-get purge -y \
92 gnupg \
93 unzip \
94 wget
95
96 . .gitlab-ci/container/container_post_build.sh