2021-02-21 05:57:38 -07:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-03-03 11:05:47 -07:00
|
|
|
Build:
|
|
|
|
name: ${{ matrix.platform.name }}
|
|
|
|
runs-on: ${{ matrix.platform.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
2021-07-15 17:35:20 -06:00
|
|
|
- { name: Windows (x64), os: windows-latest, flags: -A x64 }
|
2021-07-10 03:39:51 -06:00
|
|
|
- { name: Windows (x86), os: windows-latest, flags: -A Win32 }
|
2021-07-15 17:35:20 -06:00
|
|
|
- { name: Windows (ARM64), os: windows-latest, flags: -A ARM64 }
|
2021-03-03 11:05:47 -07:00
|
|
|
- { name: Linux, os: ubuntu-20.04, flags: -GNinja }
|
|
|
|
- { name: MacOS, os: macos-latest }
|
|
|
|
steps:
|
|
|
|
- name: Setup Linux dependencies
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install wayland-protocols \
|
|
|
|
pkg-config \
|
|
|
|
ninja-build \
|
|
|
|
libasound2-dev \
|
|
|
|
libdbus-1-dev \
|
|
|
|
libegl1-mesa-dev \
|
|
|
|
libgl1-mesa-dev \
|
|
|
|
libgles2-mesa-dev \
|
|
|
|
libglu1-mesa-dev \
|
|
|
|
libibus-1.0-dev \
|
|
|
|
libpulse-dev \
|
|
|
|
libsdl2-2.0-0 \
|
|
|
|
libsndio-dev \
|
|
|
|
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\
|
2021-03-10 17:40:43 -07:00
|
|
|
libpulse-dev \
|
|
|
|
libpango1.0-dev
|
|
|
|
sudo apt install meson
|
|
|
|
git clone --depth 1 https://gitlab.gnome.org/jadahl/libdecor.git --branch 0.1.0
|
|
|
|
cd libdecor
|
|
|
|
meson build --buildtype release -Ddemo=false -Ddbus=disabled
|
|
|
|
ninja -C build
|
|
|
|
sudo meson install -C build
|
2021-03-03 11:05:47 -07:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Configure CMake
|
|
|
|
run: cmake -B build ${{ matrix.platform.flags }}
|
|
|
|
- name: Build
|
|
|
|
run: cmake --build build/
|
2021-03-09 13:54:25 -07:00
|
|
|
|