mirror of https://github.com/encounter/SDL.git
Make github CI great again
The current CI doesn't work and can be fixed. To steps, use a matrix to build on various OS + allow platform specific flags. The linux build should cover a wider case of video backends.
This commit is contained in:
parent
686935542e
commit
00fabdde18
|
@ -3,44 +3,54 @@ name: Build
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mac:
|
Build:
|
||||||
runs-on: macos-latest
|
name: ${{ matrix.platform.name }}
|
||||||
|
runs-on: ${{ matrix.platform.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform:
|
||||||
|
- { name: Windows, os: windows-latest }
|
||||||
|
- { name: Linux, os: ubuntu-20.04, flags: -GNinja }
|
||||||
|
- { name: MacOS, os: macos-latest }
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Setup Linux dependencies
|
||||||
|
if: runner.os == 'Linux'
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ..
|
|
||||||
cmake --build .
|
|
||||||
|
|
||||||
linux:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Setup
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install wayland-protocols pkg-config ninja-build
|
sudo apt-get install wayland-protocols \
|
||||||
|
pkg-config \
|
||||||
- name: Linux
|
ninja-build \
|
||||||
run: |
|
libasound2-dev \
|
||||||
mkdir build
|
libdbus-1-dev \
|
||||||
cd build
|
libegl1-mesa-dev \
|
||||||
cmake .. -GNinja
|
libgl1-mesa-dev \
|
||||||
cmake --build .
|
libgles2-mesa-dev \
|
||||||
|
libglu1-mesa-dev \
|
||||||
windows:
|
libibus-1.0-dev \
|
||||||
runs-on: windows-latest
|
libpulse-dev \
|
||||||
|
libsdl2-2.0-0 \
|
||||||
steps:
|
libsndio-dev \
|
||||||
- uses: actions/checkout@v1
|
libudev-dev \
|
||||||
|
libwayland-dev \
|
||||||
|
libwayland-client++0 \
|
||||||
|
wayland-scanner++ \
|
||||||
|
libwayland-cursor++0 \
|
||||||
|
libx11-dev \
|
||||||
|
libxcursor-dev \
|
||||||
|
libxext-dev \
|
||||||
|
libxi-dev \
|
||||||
|
libxinerama-dev \
|
||||||
|
libxkbcommon-dev \
|
||||||
|
libxrandr-dev \
|
||||||
|
libxss-dev \
|
||||||
|
libxt-dev \
|
||||||
|
libxv-dev \
|
||||||
|
libxxf86vm-dev \
|
||||||
|
libdrm-dev \
|
||||||
|
libgbm-dev\
|
||||||
|
libpulse-dev
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Configure CMake
|
||||||
|
run: cmake -B build ${{ matrix.platform.flags }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: cmake --build build/
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ..
|
|
||||||
cmake --build .
|
|
||||||
|
|
Loading…
Reference in New Issue