-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
71 lines (58 loc) · 2.69 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
#based on HLEnhanced appveyor.yml, credits to Shepard for writing this!
-
branches:
only:
# release from master branch
- master
# Use a VM with VS 2015
os: Visual Studio 2015
# Only target Windows 32 bits
platform: Win32
# Build in Release configuration only, with debug info since we'll also be deploying builds.
configuration:
- RelWithDebInfo
# Build with all those possible configurations
environment:
matrix:
- BUILD_RULES: -DOPT:STRING=debug -DGAME_BASE_DIRECTORY=dummy
opt: debug
- BUILD_RULES: -DOPT:STRING=opt -DGAME_BASE_DIRECTORY=dummy
opt: opt
- BUILD_RULES: -DOPT:STRING=opt-fast -DGAME_BASE_DIRECTORY=dummy
opt: opt-fast
before_build:
# Appveyor uses CMake 2.8, we require at least 3.6, so make the update
- ps: Write-Host "=== (1/4) Downloading CMake 3.6.2 ZIP for Windows 64 bits ===" -foregroundcolor green
- ps: wget https://cmake.org/files/v3.6/cmake-3.6.2-win64-x64.zip -OutFile cmake.zip
- ps: Write-Host "=== (2/4) Installing CMake ===" -foregroundcolor green
- cmd: 7z x cmake.zip -o"." -y
# Create the build directory
- ps: Write-Host "=== (3/4) Creating build directory ===" -foregroundcolor green
- md build
build_script:
- cd build
- ps: Write-Host "=== (4/4) Building ===" -foregroundcolor green
- ..\cmake-3.6.2-win64-x64\bin\cmake.exe %BUILD_RULES% -G"Visual Studio 14 2015" ..
- msbuild Metamod-P.sln /t:Rebuild /p:Configuration=%CONFIGURATION% /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
# Zip the binary into a file to compress it and make its name unique
- 7z a Metamod-P-%opt%.zip %APPVEYOR_BUILD_FOLDER%\build\metamod\RelWithDebInfo\metamod.dll
- 7z a plugins-%opt%.zip %APPVEYOR_BUILD_FOLDER%\build\stub_plugin\RelWithDebInfo\stub_plugin.dll %APPVEYOR_BUILD_FOLDER%\build\trace_plugin\RelWithDebInfo\trace_plugin.dll %APPVEYOR_BUILD_FOLDER%\build\wdmisc_plugin\RelWithDebInfo\wdmisc_plugin.dll
# All builds must be checked.
matrix:
fast_finish: false
# We don't have unit tests
test: off
artifacts:
- path: build\Metamod-P-%opt%.zip
name: Metamod-P %opt%
- path: build\plugins-%opt%.zip
name: Plugins %opt%
deploy:
- provider: GitHub
auth_token:
secure: vfOUjvsA7vbrYfFOrZh4eAckZ1TZu8izQPbXY8ppDE+sKgvKG5KICFGJkcMvYhxl #Encrypted
draft: false
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only