ci: use ephemeral packages when building the build-base image
v2: - Update tag for the android_build image (Michel). Signed-off-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> [v1] Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6388>
This commit is contained in:
@@ -259,7 +259,7 @@ x86_build-base:
|
|||||||
- .fdo.container-build@debian
|
- .fdo.container-build@debian
|
||||||
- .container
|
- .container
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &x86_build-base "2020-12-09-sanitizers"
|
MESA_IMAGE_TAG: &x86_build-base "2020-12-17-use-ephemeral"
|
||||||
|
|
||||||
.use-x86_build-base:
|
.use-x86_build-base:
|
||||||
extends:
|
extends:
|
||||||
@@ -276,7 +276,7 @@ x86_build:
|
|||||||
extends:
|
extends:
|
||||||
- .use-x86_build-base
|
- .use-x86_build-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &x86_build "2020-12-16-cmake"
|
MESA_IMAGE_TAG: &x86_build "2020-12-17-use-ephemeral"
|
||||||
|
|
||||||
.use-x86_build:
|
.use-x86_build:
|
||||||
variables:
|
variables:
|
||||||
@@ -290,7 +290,7 @@ i386_build:
|
|||||||
extends:
|
extends:
|
||||||
- .use-x86_build-base
|
- .use-x86_build-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &i386_build "2020-12-09-sanitizers"
|
MESA_IMAGE_TAG: &i386_build "2020-12-17-use-ephemeral"
|
||||||
|
|
||||||
.use-i386_build:
|
.use-i386_build:
|
||||||
variables:
|
variables:
|
||||||
@@ -304,7 +304,7 @@ ppc64el_build:
|
|||||||
extends:
|
extends:
|
||||||
- .use-x86_build-base
|
- .use-x86_build-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &ppc64el_build "2020-12-09-sanitizers"
|
MESA_IMAGE_TAG: &ppc64el_build "2020-12-17-use-ephemeral"
|
||||||
|
|
||||||
.use-ppc64el_build:
|
.use-ppc64el_build:
|
||||||
variables:
|
variables:
|
||||||
@@ -318,7 +318,7 @@ s390x_build:
|
|||||||
extends:
|
extends:
|
||||||
- .use-x86_build-base
|
- .use-x86_build-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &s390x_build "2020-12-09-sanitizers"
|
MESA_IMAGE_TAG: &s390x_build "2020-12-17-use-ephemeral"
|
||||||
|
|
||||||
.use-s390x_build:
|
.use-s390x_build:
|
||||||
variables:
|
variables:
|
||||||
@@ -332,7 +332,7 @@ android_build:
|
|||||||
extends:
|
extends:
|
||||||
- .use-x86_build-base
|
- .use-x86_build-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &android_build "2020-12-09-sanitizers"
|
MESA_IMAGE_TAG: &android_build "2020-12-17-use-ephemeral"
|
||||||
|
|
||||||
.use-android_build:
|
.use-android_build:
|
||||||
variables:
|
variables:
|
||||||
|
@@ -7,11 +7,7 @@ export DEBIAN_FRONTEND=noninteractive
|
|||||||
|
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gnupg \
|
gnupg
|
||||||
python3-pip \
|
|
||||||
python3-setuptools \
|
|
||||||
unzip \
|
|
||||||
wget
|
|
||||||
|
|
||||||
# Upstream LLVM package repository
|
# Upstream LLVM package repository
|
||||||
apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
|
apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
|
||||||
@@ -21,6 +17,14 @@ echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" >/etc/apt/
|
|||||||
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
|
||||||
echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
|
echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
|
||||||
|
|
||||||
|
# Ephemeral packages (installed for this script and removed again at
|
||||||
|
# the end)
|
||||||
|
STABLE_EPHEMERAL=" \
|
||||||
|
python3-pip \
|
||||||
|
python3-setuptools \
|
||||||
|
unzip \
|
||||||
|
"
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y --no-remove \
|
apt-get install -y --no-remove \
|
||||||
@@ -64,12 +68,11 @@ apt-get install -y --no-remove \
|
|||||||
python-mako \
|
python-mako \
|
||||||
python3-mako \
|
python3-mako \
|
||||||
python3-pil \
|
python3-pil \
|
||||||
python3-pip \
|
|
||||||
python3-requests \
|
python3-requests \
|
||||||
python3-setuptools \
|
|
||||||
qemu-user \
|
qemu-user \
|
||||||
scons \
|
scons \
|
||||||
valgrind \
|
valgrind \
|
||||||
|
wget \
|
||||||
wine64-development \
|
wine64-development \
|
||||||
x11proto-dri2-dev \
|
x11proto-dri2-dev \
|
||||||
x11proto-gl-dev \
|
x11proto-gl-dev \
|
||||||
@@ -95,7 +98,7 @@ rm bin/glslangValidator glslang-master-linux-Release.zip
|
|||||||
############### Uninstall ephemeral packages
|
############### Uninstall ephemeral packages
|
||||||
|
|
||||||
apt-get purge -y \
|
apt-get purge -y \
|
||||||
gnupg \
|
$STABLE_EPHEMERAL \
|
||||||
unzip
|
gnupg
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
. .gitlab-ci/container/container_post_build.sh
|
||||||
|
Reference in New Issue
Block a user