forked from Rogier-5/minetest-mapper-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (47 loc) · 1.45 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
version: 1.0.{build}
image:
- Visual Studio 2017
- Visual Studio 2015
configuration: Release
platform:
- x86
- x64
init:
- cmd: >-
SET
set arch=
if "%Platform%"=="x64" ( set arch= Win64)
echo %arch%
echo %APPVEYOR_BUILD_WORKER_IMAGE%
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
echo %generator%
install:
- ps: >-
echo "Build Platform: $($env:Platform)"
vcpkg upgrade --no-dry-run
vcpkg install zlib sqlite3 dirent libgd leveldb libpq --triplet "$($env:Platform)-windows"
cache:
- c:\tools\vcpkg\installed\
build_script:
- cmd: >-
mkdir build
cd build
cmake .. -DVCPKG_TARGET_TRIPLET=%Platform%-windows -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -G %generator% -DENABLE_POSTGRESQL=true
cmake --build . --target ALL_BUILD --config Release
cpack -G "ZIP"
cpack -G "WIX"
artifacts:
- path: '\build\Minetestmapper*.zip'
name: build
- path: '\build\Minetestmapper*.msi'
name: installer
deploy:
- provider: GitHub
auth_token:
secure: nvCGwNkN3YUjH8vsFB/Xkseo2VSLqje0wMOXmOPyo1Lovh++Cwg7/dJRyLsEZo+U
artifact: build
prerelease: true
on:
appveyor_repo_tag: true