forked from intel/intel-graphics-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (55 loc) · 1.78 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#=========================== begin_copyright_notice ============================
#
# Copyright (C) 2019-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
#============================ end_copyright_notice =============================
language: cpp
compiler: gcc
notifications:
email:
recipients: [email protected]
on_success: never # default: change
on_failure: change # default: always
dist: focal
os: linux
matrix:
include:
- os: linux
dist: focal # Ubuntu 20.04
compiler: gcc
env: LLVM_VER=10 BUILD_TYPE=Release
addons:
apt:
packages:
- libc6=2.31-0ubuntu9.2
- os: linux
dist: focal # Ubuntu 20.04
compiler: clang-10
env: LLVM_VER=10 BUILD_TYPE=Release COMPILER_EXTRA="-DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10"
addons:
apt:
packages:
- libc6=2.31-0ubuntu9.2
git:
depth: false
branches:
only:
- master
script:
- wget https://apt.llvm.org/llvm.sh
- chmod +x llvm.sh
- sudo ./llvm.sh ${LLVM_VER}
- sudo apt-get update
- sudo apt-get install flex bison libz-dev cmake build-essential
- mkdir Old_IGC
- cd Old_IGC
- curl -s https://api.github.com/repos/intel/intel-graphics-compiler/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
- sudo dpkg -i *.deb
- cd ..
- git clone https://github.com/intel/vc-intrinsics ../vc-intrinsics
- git clone -b llvm_release_100 https://github.com/KhronosGroup/SPIRV-LLVM-Translator ../llvm-project/llvm/projects/llvm-spirv
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DIGC_OPTION__LLVM_PREFERRED_VERSION=${LLVM_VER} -DCCLANG_FROM_SYSTEM=TRUE -DIGC_OPTION__LLVM_MODE=Prebuilds ${COMPILER_EXTRA} ../
- make -j`nproc`