Skip to content

Commit

Permalink
Install Vulkan drivers to Linux GitHub runners
Browse files Browse the repository at this point in the history
  • Loading branch information
besidev committed Dec 20, 2024
1 parent 69609b4 commit 001fef9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ jobs:
- name: Set up Virtual Display (for Linux)
if: runner.os == 'Linux'
run: |
# Install Vulkan and tools for debugging
sudo apt-get install -y mesa-vulkan-drivers libvulkan1 vulkan-tools
# Set environment variables to ensure lavapipe is used
echo "VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json" >> $GITHUB_ENV
echo "MESA_VK_DEVICE_SELECT=lavapipe" >> $GITHUB_ENV
# Set up Virtual Display
Xvfb ${{env.DISPLAY}} ${{env.XVFB_PARAMS}} &
- name: Test
Expand All @@ -78,4 +84,4 @@ jobs:

- name: Javadoc
run: |
./gradlew javadoc
./gradlew javadoc

0 comments on commit 001fef9

Please sign in to comment.