forked from jpd002/Play-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
77 lines (49 loc) · 1.48 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
version: '{build}'
environment:
CONFIG_TYPE: Release
matrix:
- BUILD_TYPE: Visual Studio 14 2015
INSTALLER_SCRIPT: installer32.nsi
- BUILD_TYPE: Visual Studio 14 2015 Win64
INSTALLER_SCRIPT: installer64.nsi
build_script:
- cmd: >-
set REPO_COMMIT_SHORT=%APPVEYOR_REPO_COMMIT:~0,8%
appveyor SetVariable -Name REPO_COMMIT_SHORT -Value %REPO_COMMIT_SHORT%
cd ..
rename Play PlaySource
mkdir Play
cd Play
git clone -q https://github.com/jpd002/Play-Build.git Play-Build
cd Play-Build
git submodule update -q --init --recursive
git submodule foreach -q "git checkout -q master"
cd Dependencies
git submodule update --init
cd ..
rd /S /Q Play
move ..\..\PlaySource Play
cd Play\build_cmake
mkdir build
cd build
cmake .. -G"%BUILD_TYPE%"
cmake --build . --config %CONFIG_TYPE%
cd ..
cd ..
"C:\Program Files (x86)\NSIS\makensis.exe" ./installer_win32/%INSTALLER_SCRIPT%
cd ..
cd ..
mkdir %REPO_COMMIT_SHORT%
move Play-Build\Play\installer_win32\*.exe %REPO_COMMIT_SHORT%
artifacts:
- path: $(REPO_COMMIT_SHORT)\*.exe
name: Binaries
deploy:
- provider: S3
access_key_id: AKIAJGVKEDYESR2BIP7Q
secret_access_key:
secure: JFQy5OF0YXW/H6mcQtfxbd4dAJ+m88p5UwOrazZnfHXecN2M08LklayUlaX/51tI
bucket: playbuilds
region: us-east-2
artifact: Binaries
set_public: true