From 44caff4abab35ff92d2a239d3ca5c60cb880ab56 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 14 Nov 2024 16:51:27 +0100 Subject: [PATCH] ci/android: set VK_DRIVER_FILES before launching cuttlefish Cuttlefish performs some checks on the host system before launching, setting VK_DRIVER_FILES to the path of the host artifacts makes sure that a vulkan library can be found on the host side. Reviewed-by: Eric Engestrom Part-of: --- .gitlab-ci/cuttlefish-runner.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci/cuttlefish-runner.sh b/.gitlab-ci/cuttlefish-runner.sh index 99599712e3d..3501f3ee409 100755 --- a/.gitlab-ci/cuttlefish-runner.sh +++ b/.gitlab-ci/cuttlefish-runner.sh @@ -12,6 +12,12 @@ export PATH=/cuttlefish/bin:$PATH export LD_LIBRARY_PATH=/cuttlefish/lib64:${CI_PROJECT_DIR}/install/lib:$LD_LIBRARY_PATH export EGL_PLATFORM=surfaceless +# Pick up a vulkan driver +# +# TODO: the vulkan driver should probably be controlled by a variable in the +# .test-android job or in derived jobs +export VK_DRIVER_FILES=${CI_PROJECT_DIR}/install/share/vulkan/icd.d/ + syslogd chown root:kvm /dev/kvm