forked from cerberussnake/comp_hack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
64 lines (55 loc) · 2.16 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
version: "{branch}-{build}"
test: off
os:
- Visual Studio 2015
platform:
- x86
# - x64
configuration:
# - Debug
- Release
# - RelWithDebInfo
init:
- if platform==x64 (set CMAKE_PREFIX_PATH=C:\Qt\5.7\msvc2015_64) else (set CMAKE_PREFIX_PATH=C:\Qt\5.7\msvc2015)
- if platform==x64 (set generator=Visual Studio 14 2015 Win64) else (set generator=Visual Studio 14 2015)
- if platform==x64 (set msplatform=x64) else (set msplatform=Win32)
- echo "Platform = %platform%"
- echo "MS Platform = %msplatform%"
- echo "Configuration = %configuration%"
before_build:
- md build
- cd build
build_script:
- appveyor DownloadFile https://github.com/comphack/external/releases/download/external-5/external-0.1.1-win32.zip -FileName external.zip
- 7z x external.zip
- del external.zip
- mv external* ..\binaries
- cmake -DWINDOWS_SERVICE=ON -DCMAKE_INSTALL_PREFIX="%appveyor_build_folder%\build\install" -DCMAKE_CUSTOM_CONFIGURATION_TYPES="%configuration%" -G"%generator%" ..
# - msbuild comp_hack.sln /property:Configuration="%configuration%" /property:Platform="%msplatform%"
- cmake --build . --config %configuration% --target package
# - mkdir comp_hack-kodama-%appveyor_build_number%
# - move bin\%configuration%\*.exe comp_hack-kodama-%appveyor_build_number%\
# - move bin\%configuration%\*.pdb comp_hack-kodama-%appveyor_build_number%\
# - set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin
# - windeployqt comp_hack-kodama-%appveyor_build_number%\comp_updater.exe
# - windeployqt comp_hack-kodama-%appveyor_build_number%\comp_capgrep.exe
# - windeployqt comp_hack-kodama-%appveyor_build_number%\comp_logger.exe
# - 7z a comp_hack-kodama-%appveyor_build_number%.zip comp_hack-kodama-%appveyor_build_number%
artifacts:
- path: build\comp_hack-*.msi
name: comp_hack_installer
deploy:
release: comp_hack-kodama-$(appveyor_build_number)
description: 'Development Build'
provider: GitHub
auth_token:
secure: /xJRd5oxBbWa7IDdzPFbollIUAc7uqashBu8crIATrv4iUJX//DvzrGSFCaDdFsj
artifact: comp_hack_installer
draft: false
prerelease: true
on:
branch: develop
platform: x86
# configuration: RelWithDebInfo
configuration: Release
skip_tags: true