github: support ARM linux in backend and renderdiff tests (#9817)
- Update get-mesa.sh to query dpkg --print-architecture to install the correct packages dynamically, enabling aarch64 support. - Update get-vulkan-sdk.sh to install via apt-get on Linux (libvulkan-dev, vulkan-validationlayers, glslang-tools, spirv-tools) instead of downloading LunarG's x86_64 tarball. - Add runner architecture to Mesa and Vulkan SDK GitHub Action cache keys to prevent collision. - Update test.sh and preamble.sh to detect aarch64 and point to the appropriate aarch64-linux-gnu libraries. - Fix typos and some renaming
This commit is contained in:
@@ -26,9 +26,15 @@ GLTF_DIR="$(pwd)/gltf/Models"
|
||||
BUILD_COMMON_DIR="$(pwd)/build/common"
|
||||
|
||||
os_name=$(uname -s)
|
||||
arch_name=$(uname -m)
|
||||
if [[ "$os_name" == "Linux" ]]; then
|
||||
MESA_LIB_DIR="${MESA_DIR}lib/x86_64-linux-gnu"
|
||||
MESA_VK_ICD_PATH="${MESA_DIR}share/vulkan/icd.d/lvp_icd.x86_64.json"
|
||||
if [[ "$arch_name" == "aarch64" ]]; then
|
||||
MESA_LIB_DIR="${MESA_DIR}lib/aarch64-linux-gnu"
|
||||
MESA_VK_ICD_PATH="${MESA_DIR}share/vulkan/icd.d/lvp_icd.aarch64.json"
|
||||
else
|
||||
MESA_LIB_DIR="${MESA_DIR}lib/x86_64-linux-gnu"
|
||||
MESA_VK_ICD_PATH="${MESA_DIR}share/vulkan/icd.d/lvp_icd.x86_64.json"
|
||||
fi
|
||||
elif [[ "$os_name" == "Darwin" ]]; then
|
||||
MESA_LIB_DIR="${MESA_DIR}lib"
|
||||
MESA_VK_ICD_PATH="${MESA_DIR}share/vulkan/icd.d/lvp_icd.aarch64.json"
|
||||
|
||||
Reference in New Issue
Block a user