• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2# shellcheck disable=SC1091
3
4# When changing this file, you need to bump the following
5# .gitlab-ci/image-tags.yml tags:
6# ALPINE_X86_64_BUILD_TAG
7
8set -e
9
10. .gitlab-ci/setup-test-env.sh
11
12set -o xtrace
13
14EPHEMERAL=(
15)
16
17
18DEPS=(
19    bash
20    bison
21    ccache
22    "clang${LLVM_VERSION}-dev"
23    cmake
24    clang-dev
25    coreutils
26    curl
27    flex
28    gcc
29    g++
30    git
31    gettext
32    glslang
33    graphviz
34    linux-headers
35    "llvm${LLVM_VERSION}-static"
36    "llvm${LLVM_VERSION}-dev"
37    meson
38    mold
39    musl-dev
40    expat-dev
41    elfutils-dev
42    libclc-dev
43    libdrm-dev
44    libva-dev
45    libpciaccess-dev
46    zlib-dev
47    python3-dev
48    py3-clang
49    py3-cparser
50    py3-mako
51    py3-packaging
52    py3-pip
53    py3-ply
54    py3-yaml
55    vulkan-headers
56    spirv-tools-dev
57    spirv-llvm-translator-dev
58    util-macros
59    wayland-dev
60    wayland-protocols
61)
62
63apk --no-cache add "${DEPS[@]}" "${EPHEMERAL[@]}"
64
65pip3 install --break-system-packages sphinx===5.1.1 hawkmoth===0.16.0
66
67. .gitlab-ci/container/container_pre_build.sh
68
69
70############### Uninstall the build software
71
72# too many vendor binarise, just keep the ones we need
73find /usr/share/clc \
74  \( -type f -o -type l \) \
75  ! -name 'spirv-mesa3d-.spv' \
76  ! -name 'spirv64-mesa3d-.spv' \
77  -delete
78
79apk del "${EPHEMERAL[@]}"
80
81. .gitlab-ci/container/container_post_build.sh
82