Skip to content

Commit

Permalink
GitHub Actions: Run unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Dec 15, 2023
1 parent 3e6a942 commit c644aa5
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c644aa5

Please sign in to comment.