From 34ef8668fcdc385780edefb44c80fd9254d183a3 Mon Sep 17 00:00:00 2001 From: Udit Kumar Agarwal Date: Wed, 22 Jan 2025 11:11:21 -0800 Subject: [PATCH] [CI] Install `spirv-tools` on Linux docker containers (#16724) This is intended to improve test coverage as some `llvm-spirv` tests require `spirv-tools` to execute. --- devops/scripts/install_build_tools.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devops/scripts/install_build_tools.sh b/devops/scripts/install_build_tools.sh index 37e2c7e15ac4b..55cbc46aad449 100755 --- a/devops/scripts/install_build_tools.sh +++ b/devops/scripts/install_build_tools.sh @@ -26,3 +26,11 @@ apt update && apt install -yqq \ libhwloc-dev \ libzstd-dev \ time + +# To obtain latest release of spriv-tool. +# Same as what's done in SPRIV-LLVM-TRANSLATOR: +# https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/cec12d6cf46306d0a015e883d5adb5a8200df1c0/.github/workflows/check-out-of-tree-build.yml#L59 +. /etc/os-release +curl -L "https://packages.lunarg.com/lunarg-signing-key-pub.asc" | apt-key add - +echo "deb https://packages.lunarg.com/vulkan $VERSION_CODENAME main" | tee -a /etc/apt/sources.list +apt update && apt install -yqq spirv-tools