]> git.lizzy.rs Git - irrlicht.git/commitdiff
Add CI for the new GL ES 2 driver
authornumzero <numzer0@yandex.ru>
Mon, 13 Mar 2023 15:40:11 +0000 (18:40 +0300)
committernumzero <numzer0@yandex.ru>
Mon, 13 Mar 2023 15:40:11 +0000 (18:40 +0300)
.github/workflows/build.yml

index 8d1706ebc401f521dc42c236e71cf149d2895a3f..f3d5f5c13bb3607f72725b869e476fb050c897fe 100644 (file)
@@ -110,6 +110,33 @@ jobs:
           cd bin/Linux
           LIBGL_ALWAYS_SOFTWARE=true xvfb-run ./AutomatedTest opengl3
 
+  linux-sdl-gles2:
+    runs-on: ubuntu-latest
+    container:
+      image: ubuntu:jammy
+      env: { LANG: "C.UTF-8" }
+    steps:
+      - uses: actions/checkout@v3
+      - name: Install deps
+        run: |
+          apt-get update
+          apt-get install g++ cmake libsdl2-dev libpng-dev libjpeg-dev zlib1g-dev -qyy
+
+      - name: Build
+        run: |
+          cmake . -DBUILD_EXAMPLES=1 -DUSE_SDL2=ON -DENABLE_GLES2=ON
+          make -j2
+
+      - name: Test (headless)
+        run: |
+          cd bin/Linux
+          ./AutomatedTest null
+
+      - name: Test (Xvfb)
+        run: |
+          cd bin/Linux
+          LIBGL_ALWAYS_SOFTWARE=true xvfb-run ./AutomatedTest gles2
+
   win32:
     runs-on: ubuntu-20.04
     steps: