mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-26 16:38:06 +03:00
This removes X11 specific code, making SDL2 a hard dependency. X-based environments are continue to be supported via SDL2. This also removes joystick_linux.c which was only used if SDL2 was not available.
30 lines
709 B
YAML
30 lines
709 B
YAML
name: Linux Build
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
build-type: ["Debug", "Release"]
|
|
|
|
name: Linux ${{ matrix.build-type }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Deps
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libgtk2.0-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir -p out/${{ matrix.build-type }}
|
|
cd out/${{ matrix.build-type }}
|
|
cmake -DENABLE_X11=NO -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ../../
|
|
make
|
|
|
|
- name: Test
|
|
run: ctest --output-on-failure
|
|
working-directory: out/${{ matrix.build-type }}
|