This repository has been archived by the owner on May 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
appveyor.yml
90 lines (79 loc) · 3.1 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
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- platform: x64
configuration: release
qt: 5.10 #version freeze until fix of https://bugreports.qt.io/browse/QTBUG-61822
cc: VS2017
QTDIR: C:\Qt\5.10\msvc2017_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- platform: x86
configuration: release
qt: 5.10
cc: VS2015
toolchain_version: 14
QTDIR: C:\Qt\5.10\msvc2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
matrix:
fast_finish: false
cache:
- C:\projects\OpenSSL -> ci\build_openssl.bat
- C:\projects\QtAV -> ci\build_qtav.bat
- C:\projects\mpv -> ci\build_mpv.bat
init:
- set CL=/MP
- set vcarch=%platform%
- if "%platform%" == "x64" set vcarch=amd64
- set VCREDIST=vcredist_%platform%.exe
- if %cc%==VS2017 set VCREDIST=vc_redist.%platform%.exe
- if %cc%==VS2017 (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %vcarch%
) else if not %cc%==MinGW (
call "C:\Program Files (x86)\Microsoft Visual Studio %toolchain_version%.0\VC\vcvarsall.bat" %vcarch%
)
- set PATH=%QTDIR%\bin;%PATH%
- if %cc%==MinGW set PATH=C:\Qt\Tools\mingw%toolchain_version%_32\bin;%PATH%
- echo NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%
- echo PROCESSOR_IDENTIFIER=%PROCESSOR_IDENTIFIER%
- echo QTDIR=%QTDIR%
- echo PATH=%PATH%
install:
- call "%APPVEYOR_BUILD_FOLDER%\ci\build_openssl.bat"
- call "%APPVEYOR_BUILD_FOLDER%\ci\build_qtav.bat"
- call "%APPVEYOR_BUILD_FOLDER%\ci\build_mpv.bat"
before_build:
- echo APPVEYOR_BUILD_FOLDER=%APPVEYOR_BUILD_FOLDER%
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init
build_script:
- qmake orion.pro "CONFIG+=%configuration%" "CONFIG+=mpv qtav multimedia"
- mkdir libs
- copy /y "%OPENSSL_DIR%\*eay32.dll" libs
- copy /y %QTDIR%\bin\mpv-1.dll libs
- nmake %configuration%
- windeployqt --qmldir src\qml %configuration%\orion.exe
- copy /y %QTDIR%\bin\av*-*.dll %configuration% && copy /y %QTDIR%\bin\sw*-*.dll %configuration% && copy /y %QTDIR%\bin\QtAV*.dll %configuration%
- dir /s
after_build:
- 7z a orion_%configuration%_%platform%_snapshot_%APPVEYOR_REPO_COMMIT%.zip . -x!.git
- del %configuration%\*.obj
- del %configuration%\*.cpp
- del %configuration%\*.h
- del %configuration%\*.res
- if %configuration%==release copy "resources\orion-installer.iss" orion-installer.iss
- if %configuration%==release "C:\Program Files (x86)\Inno Setup 5\iscc.exe" /DPlatform=%platform% /DAdditionalRedist="%APPVEYOR_BUILD_FOLDER%\%configuration%\%VCREDIST%" /F"orion-%configuration%-%platform%" "orion-installer.iss"
artifacts:
- path: orion_$(configuration)_$(platform)_snapshot_$(APPVEYOR_REPO_COMMIT).zip
name: orion windows $(configuration) $(platform) snapshot zip
- path: orion-$(configuration)-$(platform).exe
name: Windows installer
deploy:
- provider: GitHub
auth_token:
secure: kna2fyW9Q70WCBxJn/YYJ4pupSRog8FFp6BhKOjr6rtfMIGGtN52UuiMtc90RTla
artifact: orion-$(configuration)-$(platform).exe
prerelease: true
force_update: true
on:
configuration: release
appveyor_repo_tag: true