forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.06 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
language: cpp
cache: ccache
branches:
except:
- /^dependabot\/.*$/
os: linux
dist: focal
virt: lxd
group: edge
arch:
- arm64
# XXX: ppc64le and s390x are not supported by LuaJIT
#- ppc64le
#- s390x
compiler:
- gcc
#- clang
addons:
apt:
update: true
packages:
- [libsdl2-dev libglew-dev liblzo2-dev libjpeg-dev libopenal-dev libogg-dev libtheora-dev libvorbis-dev]
env:
- CONFIGURATION: Debug
- CONFIGURATION: Release
before_script:
- if [ $TRAVIS_CPU_ARCH == arm64 ]; then
export core_count=2 && echo core_count = $core_count;
else
export core_count=$(nproc || echo 4) && echo core_count = $core_count;
fi
- git submodule deinit Externals/cryptopp
- CFLAGS="-w" CXXFLAGS="-w" cmake -B build -DCMAKE_BUILD_TYPE=$CONFIGURATION
script:
- if [ $TRAVIS_OS_NAME == linux ]; then
cd build;
make -j $core_count package;
file openxray_1.6.02_*.deb;
fi
deploy:
provider: releases
token:
secure: kGVniXDR926BfVcA97y25BzALbijvgboBsozZzY9yc8RPz15Q4YG474h7vl14/J1
file: ./*.deb
draft: true