forked from KhronosGroup/Vulkan-ExtensionLayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
57 lines (45 loc) · 1.29 KB
/
.travis.yml
File metadata and controls
57 lines (45 loc) · 1.29 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: cpp
dist: xenial
cache:
- ccache
matrix:
fast_finish: true # Show final status immediately if a test fails.
include:
# 64-bit Linux GCC build
- os: linux
compiler: gcc
env: ARCH=x86_64
# 64-bit Linux Clang build
- os: linux
compiler: clang
env: ARCH=x86_64
# 32-bit Linux GCC build
- os: linux
compiler: gcc
env: ARCH=x86
# 32-bit Linux Clang build
- os: linux
compiler: clang
env: ARCH=x86
# MacOS Clang build
- os: osx
compiler: clang
# # Windows build
# - os: windows
script:
# Test oldest supported Vulkan headers
- VULKAN_HEADERS_VERSION=1.2.131
- wget https://github.com/KhronosGroup/Vulkan-Headers/archive/v$VULKAN_HEADERS_VERSION.zip
- unzip v$VULKAN_HEADERS_VERSION.zip && rm v$VULKAN_HEADERS_VERSION.zip
- if [ $TRAVIS_OS_NAME = linux ] && [ $ARCH = x86 ]; then
sudo apt-get install {gcc,g++}-multilib;
export CC='gcc -m32';
export CXX='g++ -m32';
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig';
fi
- cmake .
-DVulkanHeaders_INCLUDE_DIR=$PWD/Vulkan-Headers-$VULKAN_HEADERS_VERSION/include
-DVulkanRegistry_DIR=$PWD/Vulkan-Headers-$VULKAN_HEADERS_VERSION/registry
|| travis_terminate 1
- cmake --build .
|| travis_terminate 1