forked from KangLin/FaceRecognizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
159 lines (138 loc) · 5.59 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#TODO: Change version
version: 'v0.0.4.{build}'
cache:
- model
- Package
environment:
STOREPASS:
secure: l9BZEU39F1a4vSkhwl0CHR+yh6CD1c7byGzMv+1NUa4=
QT_USER:
secure: EoBPaPuJ6u9UDYpQWjKhUg==
QT_PASSWORD:
secure: ejAYGgB+3sBispRxUSr0xw==
matrix:
##### android ########
- BUILD_TARGERT: android
GENERATORS: "MSYS Makefiles"
BUILD_ARCH: "armeabi-v7a"
ANDROID_ARM_NEON: ON
DOWNLOAD_QT: TRUE
QT_VERSION_DIR: 5.12
QT_VERSION: 5.12.6
ANDROID_PLATFORM: android-24
TOOLCHAIN_VERSION: 4.9
DOWNLOAD_THIRDLIBS_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.2.9/android4.9_arm_v0.2.9_in_windows.zip
- BUILD_TARGERT: android
GENERATORS: "MSYS Makefiles"
BUILD_ARCH: "arm64-v8a"
ANDROID_ARM_NEON: ON
DOWNLOAD_QT: TRUE
QT_VERSION_DIR: 5.12
QT_VERSION: 5.12.6
ANDROID_PLATFORM: android-24
TOOLCHAIN_VERSION: 4.9
DOWNLOAD_THIRDLIBS_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.2.9/android4.9_arm64_v0.2.9_in_windows.zip
##### msvc 2013 ########
#- BUILD_TARGERT: windows_msvc
# GENERATORS: "Visual Studio 12 2013"
# TOOLCHAIN_VERSION: 12
# QT_ROOT: C:\Qt\5.6\msvc2013
# BUILD_ARCH: x86
#- BUILD_TARGERT: windows_msvc
# GENERATORS: "Visual Studio 12 2013 Win64"
# TOOLCHAIN_VERSION: 12
# QT_ROOT: C:\Qt\5.6\msvc2013_64
# BUILD_ARCH: x64
##### msvc 2017 ########
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATORS: "Visual Studio 15 2017"
BUILD_TARGERT: windows_msvc
TOOLCHAIN_VERSION: 15
QT_ROOT: C:\Qt\5.12\msvc2017
BUILD_ARCH: x86
DOWNLOAD_THIRDLIBS_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.2.9/windows_msvc15_x86_v0.2.9.zip
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATORS: "Visual Studio 15 2017 Win64"
BUILD_TARGERT: windows_msvc
TOOLCHAIN_VERSION: 15
QT_ROOT: C:\Qt\5.12\msvc2017_64
BUILD_ARCH: x64
DOWNLOAD_THIRDLIBS_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.2.9/windows_msvc15_x64_v0.2.9.zip
##### msvc 2015 ########
- BUILD_TARGERT: windows_msvc
GENERATORS: "Visual Studio 14 2015"
TOOLCHAIN_VERSION: 14
QT_ROOT: C:\Qt\5.6\msvc2015
BUILD_ARCH: x86
DOWNLOAD_THIRDLIBS_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.2.9/windows_msvc14_x86_v0.2.9.zip
- BUILD_TARGERT: windows_msvc
GENERATORS: "Visual Studio 14 2015 Win64"
TOOLCHAIN_VERSION: 14
QT_ROOT: C:\Qt\5.10\msvc2015_64
BUILD_ARCH: x64
DOWNLOAD_THIRDLIBS_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.2.9/windows_msvc14_x64_v0.2.9.zip
##### mingw ########
- BUILD_TARGERT: windows_mingw
GENERATORS: "MSYS Makefiles"
TOOLCHAIN_VERSION: 492_32
QT_ROOT: C:\Qt\5.6\mingw49_32
BUILD_ARCH: x86
- BUILD_TARGERT: windows_mingw
GENERATORS: "MSYS Makefiles"
TOOLCHAIN_VERSION: 530_32
QT_ROOT: C:\Qt\5.10\mingw53_32
BUILD_ARCH: x86
DOWNLOAD_THIRDLIBS_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.2.9/windows_mingw530_32_x86_v0.2.9.zip
matrix:
fast_finish: false
init:
- set varch=%BUILD_ARCH%
- if "%BUILD_ARCH%" == "x64" set varch=amd64
- if "%BUILD_TARGERT%" == "windows_msvc" if %TOOLCHAIN_VERSION% LSS 15 (call "C:\Program Files (x86)\Microsoft Visual Studio %TOOLCHAIN_VERSION%.0\VC\vcvarsall.bat" %varch%) else (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %varch%)
- echo NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%
- echo PROCESSOR_IDENTIFIER=%PROCESSOR_IDENTIFIER%
- if NOT "%QT_ROOT%" == "NO" for /f "delims=" %%i in ('%QT_ROOT%/bin/qmake -query QT_VERSION') do (set QT_VERSION=%%i)
- echo QT_ROOT=%QT_ROOT%
- echo QT_VERSION=%QT_VERSION%
- del C:\msys64\usr\bin\link.exe
install:
- C:\msys64\autorebase.bat
- C:\msys64\usr\bin\pacman.exe -S --noconfirm unzip
#- if "%BUILD_TARGERT%"=="windows_mingw" set PATH=C:\Qt\Tools\mingw%TOOLCHAIN_VERSION%_32\bin;%PATH%
- if "%BUILD_TARGERT%" == "windows_mingw" set MSYSTEM=MINGW32 #设置编译系统为MINGW32
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
- git clone https://github.com/KangLin/RabbitCommon.git
- set RabbitCommon_DIR=%APPVEYOR_BUILD_FOLDER%/RabbitCommon
- cd %APPVEYOR_BUILD_FOLDER%
- C:\msys64\usr\bin\bash.exe %APPVEYOR_BUILD_FOLDER%\ci\build-install-tools-windows.sh
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- C:\msys64\usr\bin\bash.exe %APPVEYOR_BUILD_FOLDER%\ci\build.sh
artifacts:
- path: build_$(BUILD_TARGERT)\FaceRecognizer-Setup-*.exe
name: FaceRecognizer_$(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(QT_VERSION)_$(appveyor_build_version)
type: zip
- path: build_$(BUILD_TARGERT)\update_windows.xml
- path: FaceRecognizer_*.apk
test: off
#See: https://www.appveyor.com/docs/deployment/github/
deploy:
- provider: GitHub
#release: FaceRecognizer$(appveyor_build_version)
#description: 'Release FaceRecognizer $(APPVEYOR_REPO_TAG_NAME) on windows'
#token : https://github.com/settings/tokens
#password encrypt: https://ci.appveyor.com/tools/encrypt
auth_token:
secure: 2eZXTfGhgCiW9GRLbg9nq7Uz8BVEw4nLzYmgBdvdUIfeEXmlHvC8Xeabsi7yumSx
#artifact: FaceRecognizer$(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(QT_VERSION)_$(appveyor_build_version)
#draft: true
#prerelease: true
force_update: true
on:
BUILD_TARGERT: windows_msvc
TOOLCHAIN_VERSION: 14
QT_VERSION: 5.6.3
BUILD_ARCH: x86
appveyor_repo_tag: true # deploy on tag push only