forked from LukasBanana/LLGL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (36 loc) · 1.69 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: cpp
dist: xenial
sudo: required
matrix:
include:
# GNU/Linux
- os: linux
env: BADGE_LINUX
before_install:
- git clone https://github.com/LukasBanana/GaussianLib.git
- wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
- sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.1.130-xenial.list http://packages.lunarg.com/vulkan/1.1.130/lunarg-vulkan-1.1.130-xenial.list
- sudo apt update
- sudo apt-get install libx11-dev libxxf86vm-dev libxrandr-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev vulkan-sdk vulkan-tools
before_script:
- cmake -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_VULKAN=ON -DLLGL_BUILD_EXAMPLES=ON -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include" -S .
script:
- cmake --build .
# macOS
- os: osx
env: BADGE_MACOS
osx_image: xcode11
before_install:
- git clone https://github.com/LukasBanana/GaussianLib.git
before_script:
- cmake -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_METAL=ON -DLLGL_BUILD_EXAMPLES=ON -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include" -S . -B build_macos
script:
- cmake --build build_macos
# iOS
- os: osx
env: BADGE_IOS
osx_image: xcode11
before_script:
- cmake -DLLGL_BUILD_RENDERER_OPENGLES3=OFF -DLLGL_BUILD_RENDERER_METAL=ON -DLLGL_BUILD_EXAMPLES=OFF -DLLGL_BUILD_RENDERER_METAL=ON -DCMAKE_SYSTEM_NAME=iOS "-DCMAKE_OSX_ARCHITECTURES=arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DCMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH=NO -DCMAKE_IOS_INSTALL_COMBINED=ON -DLLGL_IOS_PLATFORM=ON -S . -B build_ios
script:
- cmake --build build_ios