mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 05:11:01 +00:00
This would be useful also on other platforms, but these might not have pkg-config properly setup. X11 works with it, but the distribution we use in CI is too old so it gets disabled too.
117 lines
3.3 KiB
YAML
117 lines
3.3 KiB
YAML
language: c
|
|
compiler: clang
|
|
branches:
|
|
only:
|
|
- ci
|
|
- master
|
|
- 3.3-stable
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
dist: xenial
|
|
name: "X11 shared library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libxrandr-dev
|
|
- libxinerama-dev
|
|
- libxcursor-dev
|
|
- libxi-dev
|
|
- libxext-dev
|
|
env:
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: xenial
|
|
name: "X11 static library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libxrandr-dev
|
|
- libxinerama-dev
|
|
- libxcursor-dev
|
|
- libxi-dev
|
|
- libxext-dev
|
|
env:
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: focal
|
|
name: "Wayland shared library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- wayland-protocols
|
|
- libwayland-dev
|
|
- libxkbcommon-dev
|
|
- libegl1-mesa-dev
|
|
- libxxhash-dev
|
|
env:
|
|
- USE_WAYLAND=ON
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: focal
|
|
name: "Wayland static library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- wayland-protocols
|
|
- libwayland-dev
|
|
- libxkbcommon-dev
|
|
- libegl1-mesa-dev
|
|
- libxxhash-dev
|
|
env:
|
|
- USE_WAYLAND=ON
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: bionic
|
|
name: "Null shared library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libosmesa6-dev
|
|
env:
|
|
- BUILD_SHARED_LIBS=ON
|
|
- USE_OSMESA=ON
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: bionic
|
|
name: "Null static library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libosmesa6-dev
|
|
env:
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- USE_OSMESA=ON
|
|
- CFLAGS=-Werror
|
|
- os: osx
|
|
name: "Cocoa shared library"
|
|
env:
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- MACOSX_DEPLOYMENT_TARGET=10.8
|
|
- os: osx
|
|
name: "Cocoa static library"
|
|
env:
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- MACOSX_DEPLOYMENT_TARGET=10.8
|
|
script:
|
|
- if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then
|
|
echo Trailing whitespace found, aborting;
|
|
exit 1;
|
|
fi
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DGLFW_USE_WAYLAND=${USE_WAYLAND} -DGLFW_USE_OSMESA=${USE_OSMESA} ..
|
|
- cmake --build .
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- ci@glfw.org
|
|
on_success: never
|
|
on_failure: always
|