ci/vk: Strip and optimise validation layers

The validation layers being installed are somehow 206MB in size. Slim
them down to 26 MB by building the dependencies in release mode, and
stripping on install.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31595>
This commit is contained in:
Daniel Stone
2024-10-10 12:11:04 -04:00
committed by Marge Bot
parent e26ea7a00e
commit 9295de1396
2 changed files with 5 additions and 4 deletions

View File

@@ -11,8 +11,9 @@ VALIDATION_TAG="snapshot-2024wk39"
git clone -b "$VALIDATION_TAG" --single-branch --depth 1 https://github.com/KhronosGroup/Vulkan-ValidationLayers.git
pushd Vulkan-ValidationLayers
python3 scripts/update_deps.py --dir external --config debug
python3 scripts/update_deps.py --dir external --config release --generator Ninja
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=OFF -DBUILD_WERROR=OFF -C external/helper.cmake -S . -B build
ninja -C build install
ninja -C build
cmake --install build --strip
popd
rm -rf Vulkan-ValidationLayers

View File

@@ -28,9 +28,9 @@ variables:
DEBIAN_X86_64_TEST_ANDROID_IMAGE_PATH: "debian/x86_64_test-android"
DEBIAN_TEST_ANDROID_TAG: "20241011-deqpr"
DEBIAN_TEST_GL_TAG: "20241015-piglit-7c"
DEBIAN_TEST_GL_TAG: "20241016-vatkins"
DEBIAN_TEST_VK_TAG: "20241016-teetotal"
KERNEL_ROOTFS_TAG: "20241016-teetotal"
KERNEL_ROOTFS_TAG: "20241016-vatkins"
DEBIAN_PYUTILS_IMAGE: "debian/x86_64_pyutils"
DEBIAN_PYUTILS_TAG: "20241002-pyutils"