-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
116 lines (102 loc) · 2.77 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: 0.1.2-build{build}
skip_non_tags: true
os: Windows Server 2012 R2
shallow_clone: true
branches:
only:
- master
- /v\d\.\d\.\d/
configuration: Release
environment:
qtcryptohash_version: 0.1.2
qt_version: 5.6
msvc_dir: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
mingw_dir: C:\Qt\Tools\mingw492_32\bin
matrix:
#MSVC x86
- name: msvc2015-win32
arch: x86
compiler: msvc
type: dynamic
qt_dir: C:\Qt\%qt_version%\msvc2015\bin
#MSVC x86 STATIC
- name: msvc2015-win32-static
arch: x86
compiler: msvc
type: static
qt_dir: C:\Qt\%qt_version%\msvc2015\bin
#MSVC x64
- name: msvc2015-win64
arch: x64
compiler: msvc
type: dynamic
qt_dir: C:\Qt\%qt_version%\msvc2015_64\bin
#MSVC x64 STATIC
- name: msvc2015-win64-static
arch: x64
compiler: msvc
type: static
qt_dir: C:\Qt\%qt_version%\msvc2015_64\bin
#MinGW x86
- name: mingw49-win32
arch: x86
compiler: mingw
type: dynamic
qt_dir: C:\Qt\%qt_version%\mingw49_32\bin
#MinGW x86 STATIC
- name: mingw49-win32-static
arch: x86
compiler: mingw
type: static
qt_dir: C:\Qt\%qt_version%\mingw49_32\bin
init:
- set PATH=%PATH%;%msvc_dir%;%mingw_dir%;%qt_dir%
- if [%compiler%]==[msvc]
call vcvarsall.bat %arch%
build_script:
- mkdir build
- cd build
- if [%type%]==[static] (
qmake ..\QtCryptoHash.pro "CONFIG += static"
) else (
qmake ..\QtCryptoHash.pro
)
- if [%compiler%]==[msvc] (
nmake debug & nmake release
) else (
mingw32-make debug & mingw32-make release
)
- cd ..
- mkdir pkg
- cd pkg
- mkdir bin\%arch%\debug\
- mkdir bin\%arch%\release\
- if [%compiler%]==[msvc] (
copy /y ..\bin\%arch%\%type%\debug\*.lib bin\%arch%\debug\ &
copy /y ..\bin\%arch%\%type%\release\*.lib bin\%arch%\release\
) else (
copy /y ..\bin\%arch%\%type%\debug\*.a bin\%arch%\debug\ &
copy /y ..\bin\%arch%\%type%\release\*.a bin\%arch%\release\
)
- if [%type%]==[dynamic] (
copy /y ..\bin\%arch%\%type%\debug\*.dll bin\%arch%\debug\ &
copy /y ..\bin\%arch%\%type%\release\*.dll bin\%arch%\release\
)
- copy /y ..\lib\include\qcryptohash.hpp qcryptohash.hpp
- 7z a -t7z QtCryptoHash-v%qtcryptohash_version%-%name%.7z *
artifacts:
- path: pkg\**\*.7z
name: binary
test: off
deploy:
provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'Binaries of QtCryptoHash $(APPVEYOR_REPO_TAG_NAME)'
auth_token:
secure: 4V5xJQT+iVPUhK05TBLkNkLY8HTArZ+omH394hfXqQuxfrkaQqnR8132rDnB/HVm
artifact: /.*\.7z/
draft: true
prerelease: false
on:
# branch: master
appveyor_repo_tag: true