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