Fix unresolved external symbol WinMain when building with MSVC and /S… #739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install libgl1-mesa-dev libfreetype6-dev libfontconfig1-dev libxxf86vm-dev libpng-dev libvorbis-dev g++ libwebp-dev git libsdl2-dev ninja-build | |
- 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: sudo apt install xserver-xorg-core xserver-xorg-video-dummy | |
- name: Unittest | |
run: | | |
cd build | |
Xorg -config ../data/xorg.conf &>/dev/null & | |
sleep 1 # wait for Xorg to boot up | |
DISPLAY=:0 ./Debug/jngl-unittest | |
DISPLAY=:0 ./Release/jngl-unittest |