Skip to content

Commit 45ba9fb

Browse files
authored
Merge branch 'master' into yaRnMcDonuts-patch-1
2 parents 14fc8bb + 63d5259 commit 45ba9fb

File tree

89 files changed

+6450
-1839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+6450
-1839
lines changed

.github/workflows/main.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,49 @@ on:
5656
types: [published]
5757

5858
jobs:
59-
59+
ScreenshotTests:
60+
name: Run Screenshot Tests
61+
runs-on: ubuntu-latest
62+
permissions:
63+
contents: read
64+
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/**
60102
# Build the natives on android
61103
BuildAndroidNatives:
62104
name: Build natives for android

0 commit comments

Comments
 (0)