]> git.lizzy.rs Git - irrlicht.git/commitdiff
Add build with SDL2 to CI
authorsfan5 <sfan5@live.de>
Sat, 15 Oct 2022 09:06:20 +0000 (11:06 +0200)
committersfan5 <sfan5@live.de>
Sat, 15 Oct 2022 09:13:20 +0000 (11:13 +0200)
.github/workflows/build.yml

index 5c195d9c959a7e5dfaeacc083bddc0bf57c706ec..8bccdf37e116262abcc3362f9364291e8f8185bb 100644 (file)
@@ -63,6 +63,29 @@ jobs:
           cd bin/Linux
           LIBGL_ALWAYS_SOFTWARE=true xvfb-run ./AutomatedTest
 
+  linux-sdl:
+    runs-on: ubuntu-latest
+    container:
+      image: ubuntu:jammy
+      env: { LANG: "C.UTF-8" }
+    steps:
+      - uses: actions/checkout@v2
+      - name: Install deps
+        run: |
+          apt-get update
+          apt-get install g++ cmake libsdl2-dev libpng-dev libjpeg-dev zlib1g-dev -qyy
+
+      - name: Build
+        run: |
+          sed '/#define _IRR_COMPILE_WITH_SDL_DEVICE_/ s|^//||g' -i include/IrrCompileConfig.h
+          cmake . -DBUILD_EXAMPLES=1
+          make -j2
+
+      - name: Test (headless)
+        run: |
+          cd bin/Linux
+          ./AutomatedTest null
+
   win32:
     runs-on: ubuntu-20.04
     steps: