| 1 | #!/usr/bin/envscip-shell filesystem . . `/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 | |
| 8 | set -e |
| 9 | |
| 10 | . .gitlab-ci/setup-test-env.shscip-shell source . . `.gitlab-ci/setup-test-env.sh`. |
| 11 | |
| 12 | set -o xtrace |
| 13 | |
| 14 | EPHEMERAL=( |
| 15 | ) |
| 16 | |
| 17 | |
| 18 | DEPS=( |
| 19 | bash |
| 20 | bison |
| 21 | ccache |
| 22 | "clang${LLVM_VERSION}-dev" |
| 23 | clang-dev |
| 24 | cmake |
| 25 | coreutils |
| 26 | curl |
| 27 | elfutils-dev |
| 28 | expat-dev |
| 29 | flex |
| 30 | g++ |
| 31 | gcc |
| 32 | gettext |
| 33 | git |
| 34 | glslang |
| 35 | graphviz |
| 36 | libclc-dev |
| 37 | libdrm-dev |
| 38 | libpciaccess-dev |
| 39 | libva-dev |
| 40 | linux-headers |
| 41 | "llvm${LLVM_VERSION}-dev" |
| 42 | "llvm${LLVM_VERSION}-static" |
| 43 | mold |
| 44 | musl-dev |
| 45 | ninja-build |
| 46 | py3-clang |
| 47 | py3-cparser |
| 48 | py3-mako |
| 49 | py3-packaging |
| 50 | py3-pip |
| 51 | py3-ply |
| 52 | py3-yaml |
| 53 | python3-dev |
| 54 | spirv-llvm-translator-dev |
| 55 | spirv-tools-dev |
| 56 | util-macros |
| 57 | vulkan-headers |
| 58 | zlib-dev |
| 59 | ) |
| 60 | |
| 61 | apk --no-cache add "${DEPS[@]}" "${EPHEMERAL[@]}" |
| 62 | |
| 63 | # shellcheck disable=2016 # we're not trying to evaluate $PATH now |
| 64 | echoscip-shell system . . echo. 'export PATH="/usr/lib/ninja-build/bin/:$PATH"' > /etc/profile.d/ninja-path.shscip-shell filesystem . . `/etc/profile.d/ninja-path.sh`. |
| 65 | source /etc/profile.d/ninja-path.shscip-shell source . . `/etc/profile.d/ninja-path.sh`. |
| 66 | |
| 67 | pip3scip-shell system . . pip3. install --break-system-packages sphinx===8.2.3 hawkmoth===0.19.0 |
| 68 | |
| 69 | . .gitlab-ci/container/container_pre_build.shscip-shell source . . `.gitlab-ci/container/container_pre_build.sh`. |
| 70 | |
| 71 | . .gitlab-ci/container/install-meson.shscip-shell source . . `.gitlab-ci/container/install-meson.sh`. |
| 72 | |
| 73 | . .gitlab-ci/container/build-rust.shscip-shell source . . `.gitlab-ci/container/build-rust.sh`. build |
| 74 | |
| 75 | EXTRA_MESON_ARGS='--prefix=/usr' \ |
| 76 | . .gitlab-ci/container/build-wayland.shscip-shell source . . `.gitlab-ci/container/build-wayland.sh`. |
| 77 | |
| 78 | ############### Uninstall the build software |
| 79 | |
| 80 | # too many vendor binarise, just keep the ones we need |
| 81 | findscip-shell system . . find. /usr/share/clcscip-shell filesystem . . `/usr/share/clc`. \ |
| 82 | \( -type f -o -type l \) \ |
| 83 | ! -name 'spirv-mesa3d-.spv' \ |
| 84 | ! -name 'spirv64-mesa3d-.spv' \ |
| 85 | -delete |
| 86 | |
| 87 | apk del "${EPHEMERAL[@]}" |
| 88 | |
| 89 | . .gitlab-ci/container/container_post_build.shscip-shell source . . `.gitlab-ci/container/container_post_build.sh`. |