Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/scripts/ci
diff options
context:
space:
mode:
authorgrbr404 <166065505+grbr404@users.noreply.github.com>2025-05-03 19:23:13 +0200
committerGitHub <noreply@github.com>2025-05-03 19:23:13 +0200
commit3fc211bcb8dcddd90d50b081553750573bddea7d (patch)
tree35a6fcdb500eeae48eeb8e88d5fd234d9b2dc4d4 /scripts/ci
parent7bab09614be193ae9b2dc0b5c04d32dbcae6b1b1 (diff)
Update run-client.sh
Added Vulkan support check befor looking for Zink support
Diffstat (limited to 'scripts/ci')
-rwxr-xr-xscripts/ci/linux/run-client.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/ci/linux/run-client.sh b/scripts/ci/linux/run-client.sh
index 6faf5e7..014c2f6 100755
--- a/scripts/ci/linux/run-client.sh
+++ b/scripts/ci/linux/run-client.sh
@@ -1,11 +1,14 @@
#!/bin/sh
-# Check for Zink support
-if MESA_LOADER_DRIVER_OVERRIDE=zink glxinfo | grep -q 'renderer string.*zink'; then
- # Set environment variables for Zink
- export __GLX_VENDOR_LIBRARY_NAME=mesa
- export MESA_LOADER_DRIVER_OVERRIDE=zink
- export GALLIUM_DRIVER=zink
+# Check for Vulkan support
+if command -v vulkaninfo &> /dev/null; then
+ # Check for Zink support
+ if MESA_LOADER_DRIVER_OVERRIDE=zink glxinfo | grep -q 'renderer string.*zink'; then
+ # Set environment variables for Zink
+ export __GLX_VENDOR_LIBRARY_NAME=mesa
+ export MESA_LOADER_DRIVER_OVERRIDE=zink
+ export GALLIUM_DRIVER=zink
+ fi
fi
cd "`dirname \"$0\"`"