-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
81 lines (67 loc) · 2.17 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
version: '{build}'
image:
- Ubuntu
- Visual Studio 2013
configuration:
- RelWithDebInfo
environment:
SAMP_SDK_ROOT: sdk
matrix:
- STATIC: ON
- STATIC: OFF
for:
-
matrix:
only:
- image: Ubuntu
install:
- sudo apt-add-repository -y ppa:kubuntu-ppa/backports
- sudo apt-get update -qq
- sudo apt-get install -y linux-libc-dev:i386 gcc-4.8 gcc-4.8-multilib
g++-4.8 g++-4.8-multilib cmake cmake python-pip
doxygen
- sudo rm /usr/local/bin/doxygen || true
- sudo pip install ply
- git clone --depth 1 https://github.com/Zeex/samp-plugin-sdk.git sdk
before_build:
- mkdir build && cd build
- cmake .. -DCMAKE_C_COMPILER=gcc-4.8
-DCMAKE_CXX_COMPILER=g++-4.8
-DSAMPGDK_STATIC=${STATIC}
-DSAMPGDK_BUILD_PLUGINS=ON
-DSAMPGDK_BUILD_AMALGAMATION=ON
build_script:
- make
- make package
artifacts:
- path: build/sampgdk-*-linux.tar.gz
name: Binary Package (shared library)
- path: build/sampgdk-*-linux-static.tar.gz
name: Binary Package (static library)
- path: build/sampgdk-*-amalgamation.zip
name: Amalgamation (concatenated source code)
-
matrix:
only:
- image: Visual Studio 2013
install:
- choco install -y doxygen.install
- set PATH=%PATH%;C:\Python27\Scripts
- pip install ply
- git clone https://github.com/Zeex/samp-plugin-sdk.git sdk
before_build:
- mkdir build && cd build
- cmake .. -G "Visual Studio 10 2010"
-DSAMPGDK_STATIC=%STATIC%
-DSAMPGDK_BUILD_PLUGINS=ON
-DSAMPGDK_BUILD_AMALGAMATION=ON
build_script:
- cmake --build . --config %CONFIGURATION%
- cmake --build . --config %CONFIGURATION% --target package
artifacts:
- path: build/sampgdk-*-win32.zip
name: Binary Package (DLL)
- path: build/sampgdk-*-win32-static.zip
name: Binary Package (static library)
- path: build/sampgdk-*-amalgamation.zip
name: Amalgamation (concatenated source code)