Skip to content

Commit c69b954

Browse files
committed
ci: render the definitions run through EGL
1 parent 3e1e7b3 commit c69b954

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/generate-definitions.yml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16+
timeout-minutes: 75
1617
steps:
1718
- name: Checkout Repository
1819
uses: actions/checkout@v6
@@ -50,17 +51,20 @@ jobs:
5051
run: |
5152
cp ts-defgen.js run/LiquidBounce/scripts/
5253
53-
- name: Install Xvfb
54-
run: sudo apt-get install -y xvfb
54+
# The game renders through Mesa's EGL
55+
- name: Install Xvfb and EGL
56+
run: sudo apt-get update && sudo apt-get install -y xvfb libegl1 libegl-mesa0
5557

5658
- name: Run LiquidBounce with Gradle
5759
env:
5860
SCRIPT_TYPEGEN_BUILD: "true" # Set the CI_BUILD flag to auto-execute ts-defgen
5961
LB_BROWSER_SKIP: "true"
6062
LB_INTEROP_SKIP: "true"
63+
# Minecraft asks for an sRGB framebuffer, which Xvfb's GLX does not offer
64+
SDL_VIDEO_FORCE_EGL: 1
6165
run: |
6266
chmod +x ./gradlew
63-
timeout 60m xvfb-run --auto-servernum --server-args="-screen 0 1280x720x24" ./gradlew runClient -Dfabric.headless=true -Pliquidbounce=${{ steps.version.outputs.liquidbounce }} || exit 0
67+
timeout 60m xvfb-run -a -s "-screen 0 1280x720x24" ./gradlew runClient -Pliquidbounce=${{ steps.version.outputs.liquidbounce }} || exit 0
6468
6569
- name: Upload TypeScript Definitions
6670
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)