forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
94 lines (84 loc) · 2.8 KB
/
appveyor.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '{build}'
pull_requests:
do_not_increment_build_number: true
skip_tags: true
image:
- Visual Studio 2019
- Ubuntu
configuration:
- Debug
- Mixed
- Release
platform:
- x64
- x86
matrix:
exclude:
- image: Ubuntu
configuration: Mixed
cache:
- src/packages -> **/packages.config
for:
-
matrix:
only:
- image: Visual Studio 2019
before_build:
- git submodule update --init --recursive
- nuget restore src\engine.sln
build:
project: src/engine.sln
parallel: true
verbosity: minimal
after_build:
- cmd: xr_pack_build.cmd
artifacts:
- path: res/OpenXRay.*.7z
name: OpenXRay.*.7z
- path: res/Symbols.*.7z
name: Symbols.*.7z
-
matrix:
only:
- image: Ubuntu
before_build:
- git submodule update --init --recursive
- git submodule deinit Externals/cryptopp
build_script:
- export CC=gcc-8
- export CXX=g++-8
- ${CXX} --version
- export core_count=$(nproc || echo 4) && echo core_count = $core_count
- mkdir bin
- cd bin
- sh: |
if [ "$PLATFORM" = "x64" ]; then
sudo apt-get update &&
sudo apt-get install -y libglew-dev libegl1-mesa-dev libgles2-mesa-dev libopenal-dev libtbb-dev libcrypto++-dev liblockfile-dev libfreeimage-dev libfreeimageplus-dev &&
sudo apt-get install -y cmake liblua5.1-0-dev libssl-dev libogg-dev libtheora-dev libvorbis-dev liblzo2-dev libjpeg-dev libncurses5-dev libsdl2-dev &&
CFLAGS="-w" CXXFLAGS="-w" cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION
fi
- sh: |
if [ "$PLATFORM" = "x86" ]; then
sudo dpkg --add-architecture i386 && sudo apt-get -qq update && sudo apt-get install -y gcc-multilib g++-8-multilib libpulse-dev:i386 libglib2.0-dev:i386 &&
sudo apt-get install -y libglew-dev:i386 libegl1-mesa-dev:i386 libgles2-mesa-dev:i386 libopenal-dev:i386 libtbb-dev:i386 libcrypto++-dev:i386 liblockfile-dev:i386 libfreeimage-dev:i386 libfreeimageplus-dev:i386 &&
sudo apt-get install -y cmake liblua5.1-0-dev:i386 libssl-dev:i386 libogg-dev:i386 libtheora-dev:i386 libvorbis-dev:i386 liblzo2-dev:i386 libjpeg-dev:i386 libncurses5-dev:i386 libsdl2-dev:i386 &&
CFLAGS="-m32 -w" CXXFLAGS="-m32 -w" cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=i386 -DCMAKE_ASM_FLAGS=-m32
fi
- make -j $core_count package
- file openxray_1.6.02_*.deb
artifacts:
- path: bin/openxray_1.6.02_*.deb
name: openxray_1.6.02_*.deb
test: off
deploy:
- provider: GitHub
tag: $(appveyor_build_version)
release: OpenXRay (build $(appveyor_build_version))
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: kGVniXDR926BfVcA97y25BzALbijvgboBsozZzY9yc8RPz15Q4YG474h7vl14/J1
artifact:
OpenXRay.*.7z, Symbols.*.7z
draft: true
force_update: true