@@ -60,46 +60,41 @@ jobs:
6060 ScreenshotTests :
6161 name : Run Screenshot Tests
6262 runs-on : ubuntu-latest
63+ container :
64+ image : ghcr.io/onemillionworlds/opengl-docker-image:v1
6365 permissions :
6466 contents : read
6567 steps :
66- - uses : actions/checkout@v4
67- - name : Set up JDK 17
68- uses : actions/setup-java@v4
69- with :
70- java-version : ' 17'
71- distribution : ' temurin'
72- - name : Install Mesa3D
73- run : |
74- sudo apt-get update
75- sudo apt-get install -y mesa-utils libgl1-mesa-dri libgl1 libglx-mesa0 xvfb
76- - name : Set environment variables for Mesa3D
77- run : |
78- echo "LIBGL_ALWAYS_SOFTWARE=1" >> $GITHUB_ENV
79- echo "MESA_LOADER_DRIVER_OVERRIDE=llvmpipe" >> $GITHUB_ENV
80- - name : Start xvfb
81- run : |
82- sudo Xvfb :99 -ac -screen 0 1024x768x16 &
83- export DISPLAY=:99
84- echo "DISPLAY=:99" >> $GITHUB_ENV
85- - name : Verify Mesa3D Installation
86- run : |
87- glxinfo | grep "OpenGL"
88- - name : Validate the Gradle wrapper
89- uses : gradle/actions/wrapper-validation@v3
90- - name : Test with Gradle Wrapper
91- run : |
92- ./gradlew :jme3-screenshot-test:screenshotTest
93- - name : Upload Test Reports
94- uses : actions/upload-artifact@master
95- if : always()
96- with :
97- name : screenshot-test-report
98- retention-days : 30
99- path : |
100- **/build/reports/**
101- **/build/changed-images/**
102- **/build/test-results/**
68+ - uses : actions/checkout@v4
69+ - name : Start xvfb
70+ run : |
71+ Xvfb :99 -ac -screen 0 1024x768x16 &
72+ export DISPLAY=:99
73+ echo "DISPLAY=:99" >> $GITHUB_ENV
74+ - name : Report GL/Vulkan
75+ run : |
76+ set -x
77+ echo "DISPLAY=$DISPLAY"
78+ glxinfo | grep -E "OpenGL version|OpenGL renderer|OpenGL vendor" || true
79+ vulkaninfo --summary || true
80+ echo "VK_ICD_FILENAMES=$VK_ICD_FILENAMES"
81+ echo "MESA_LOADER_DRIVER_OVERRIDE=$MESA_LOADER_DRIVER_OVERRIDE"
82+ echo "GALLIUM_DRIVER=$GALLIUM_DRIVER"
83+ - name : Validate the Gradle wrapper
84+ uses : gradle/actions/wrapper-validation@v3
85+ - name : Test with Gradle Wrapper
86+ run : |
87+ ./gradlew :jme3-screenshot-test:screenshotTest
88+ - name : Upload Test Reports
89+ uses : actions/upload-artifact@master
90+ if : always()
91+ with :
92+ name : screenshot-test-report
93+ retention-days : 30
94+ path : |
95+ **/build/reports/**
96+ **/build/changed-images/**
97+ **/build/test-results/**
10398
10499 # Build iOS natives
105100 BuildIosNatives :
0 commit comments