forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
105 lines (94 loc) · 2.72 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
95
96
97
98
99
100
101
102
103
104
105
version: '{build}'
pull_requests:
do_not_increment_build_number: true
skip_tags: true
skip_branch_with_pr: true
image:
- Visual Studio 2019
- Ubuntu
configuration:
- Debug
- Mixed
- Release
- Release Master Gold
platform:
- x64
- x86
branches:
except:
- dependabot/*
matrix:
exclude:
- image: Ubuntu
configuration: Mixed
- image: Ubuntu
configuration: Release Master Gold
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: misc/windows/xr_pack_build.cmd "%CONFIGURATION%" "%PLATFORM%"
artifacts:
- path: res/OpenXRay.*.7z
name: OpenXRay.*.7z
- path: res/Symbols.*.7z
name: Symbols.*.7z
- path: res/Utils.*.7z
name: Utils.*.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
- cmake --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 libsdl2-dev libglew-dev liblzo2-dev libjpeg-dev &&
sudo apt-get install -y libopenal-dev libogg-dev libtheora-dev libvorbis-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 remove -y libllvm10 libgl1 libgl1-mesa-dri && sudo apt-get install -y gcc-multilib g++-8-multilib &&
sudo apt-get install -y libsdl2-dev:i386 libglew-dev:i386 liblzo2-dev:i386 libjpeg-dev:i386 &&
sudo apt-get install -y libopenal-dev:i386 libogg-dev:i386 libtheora-dev:i386 libvorbis-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, Utils.*.7z
draft: true
force_update: true