From c644aa5e2a78bc061c99486022493c4e229b48a0 Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Fri, 15 Dec 2023 20:56:55 +0100 Subject: [PATCH] GitHub Actions: Run unittest --- .github/workflows/linux.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 4e9905fd5..4c0181d06 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,7 +9,18 @@ jobs: run: | sudo apt update sudo apt install libgl1-mesa-dev libfreetype6-dev libfontconfig1-dev libxxf86vm-dev libpng-dev libvorbis-dev libopenal-dev g++ libwebp-dev git libsdl2-dev ninja-build - - name: Build with CMake and GCC - run: | - cmake -Bbuild -H. -GNinja - ninja -Cbuild + - name: Configure with CMake and GCC + run: cmake -Bbuild -G"Ninja Multi-Config" + - name: Build Debug + run: cd build && ninja + - name: Build Release + run: cd build && ninja -f build-Release.ninja + - name: Install unittest dependencies + run: apt install xserver-xorg-core xserver-xorg-video-dummy + - name: Unittest + run: + - cd build + - Xorg -config ../data/xorg.config &>/dev/null & + - sleep 1 # wait for Xorg to boot up + - DISPLAY=:0 ./Debug/jngl-unittest + - DISPLAY=:0 ./Release/jngl-unittest