|
@@ -59,46 +59,41 @@ jobs:
|
|
|
ScreenshotTests:
|
|
|
name: Run Screenshot Tests
|
|
|
runs-on: ubuntu-latest
|
|
|
+ container:
|
|
|
+ image: ghcr.io/oneMillionWorlds/opengl-docker-image:v1
|
|
|
permissions:
|
|
|
contents: read
|
|
|
steps:
|
|
|
- - uses: actions/checkout@v4
|
|
|
- - name: Set up JDK 17
|
|
|
- uses: actions/setup-java@v4
|
|
|
- with:
|
|
|
- java-version: '17'
|
|
|
- distribution: 'temurin'
|
|
|
- - name: Install Mesa3D
|
|
|
- run: |
|
|
|
- sudo apt-get update
|
|
|
- sudo apt-get install -y mesa-utils libgl1-mesa-dri libgl1 libglx-mesa0 xvfb
|
|
|
- - name: Set environment variables for Mesa3D
|
|
|
- run: |
|
|
|
- echo "LIBGL_ALWAYS_SOFTWARE=1" >> $GITHUB_ENV
|
|
|
- echo "MESA_LOADER_DRIVER_OVERRIDE=llvmpipe" >> $GITHUB_ENV
|
|
|
- - name: Start xvfb
|
|
|
- run: |
|
|
|
- sudo Xvfb :99 -ac -screen 0 1024x768x16 &
|
|
|
- export DISPLAY=:99
|
|
|
- echo "DISPLAY=:99" >> $GITHUB_ENV
|
|
|
- - name: Verify Mesa3D Installation
|
|
|
- run: |
|
|
|
- glxinfo | grep "OpenGL"
|
|
|
- - name: Validate the Gradle wrapper
|
|
|
- uses: gradle/actions/wrapper-validation@v3
|
|
|
- - name: Test with Gradle Wrapper
|
|
|
- run: |
|
|
|
- ./gradlew :jme3-screenshot-test:screenshotTest
|
|
|
- - name: Upload Test Reports
|
|
|
- uses: actions/upload-artifact@master
|
|
|
- if: always()
|
|
|
- with:
|
|
|
- name: screenshot-test-report
|
|
|
- retention-days: 30
|
|
|
- path: |
|
|
|
- **/build/reports/**
|
|
|
- **/build/changed-images/**
|
|
|
- **/build/test-results/**
|
|
|
+ - uses: actions/checkout@v4
|
|
|
+ - name: Start xvfb
|
|
|
+ run: |
|
|
|
+ Xvfb :99 -ac -screen 0 1024x768x16 &
|
|
|
+ export DISPLAY=:99
|
|
|
+ echo "DISPLAY=:99" >> $GITHUB_ENV
|
|
|
+ - name: Report GL/Vulkan
|
|
|
+ run: |
|
|
|
+ set -x
|
|
|
+ echo "DISPLAY=$DISPLAY"
|
|
|
+ glxinfo | grep -E "OpenGL version|OpenGL renderer|OpenGL vendor" || true
|
|
|
+ vulkaninfo --summary || true
|
|
|
+ echo "VK_ICD_FILENAMES=$VK_ICD_FILENAMES"
|
|
|
+ echo "MESA_LOADER_DRIVER_OVERRIDE=$MESA_LOADER_DRIVER_OVERRIDE"
|
|
|
+ echo "GALLIUM_DRIVER=$GALLIUM_DRIVER"
|
|
|
+ - name: Validate the Gradle wrapper
|
|
|
+ uses: gradle/actions/wrapper-validation@v3
|
|
|
+ - name: Test with Gradle Wrapper
|
|
|
+ run: |
|
|
|
+ ./gradlew :jme3-screenshot-test:screenshotTest
|
|
|
+ - name: Upload Test Reports
|
|
|
+ uses: actions/upload-artifact@master
|
|
|
+ if: always()
|
|
|
+ with:
|
|
|
+ name: screenshot-test-report
|
|
|
+ retention-days: 30
|
|
|
+ path: |
|
|
|
+ **/build/reports/**
|
|
|
+ **/build/changed-images/**
|
|
|
+ **/build/test-results/**
|
|
|
# Build the natives on android
|
|
|
BuildAndroidNatives:
|
|
|
name: Build natives for android
|