-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
appveyor.yml
118 lines (98 loc) · 3.49 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
version: 1.3.0.{build}
branches:
only:
- master
environment:
matrix:
- job_name: Windows (MSVC)
ARCH: x64
COMPILER: VS2019
QTDIR: C:\Qt\6.2\msvc2019_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- job_name: Mac OSX (Clang)
APPVEYOR_BUILD_WORKER_IMAGE: macOS-BigSur
matrix:
fast_finish: true
#image:
# - Visual Studio 2019
# - macOS-Mojave
platform:
- x64
configuration:
- Release
#matrix:
# exclude:
# # Exclude invalid options
# - image: Visual Studio 2019
# COMPILER: CLang
#
# - image: macos-mojave
# COMPILER: VS2019
for:
- # Windows
matrix:
only:
- job_name: Windows (MSVC)
before_build:
- set SOURCEDIR=%cd%
- call %QTDIR%\bin\qtenv2.bat
- cd /D %SOURCEDIR%
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
build_script:
- mkdir .\build
- cd .\build
- cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=RELEASE ../
- cmake --build .
- call %QTDIR%\bin\windeployqt --release tidal-rpc.exe
after_build:
- xcopy /c "C:\OpenSSL-v111-Win64\bin\*.dll"
- echo zipping %APPVEYOR_BUILD_VERSION%
- 7z a tidal-rpc.zip tidal-rpc.exe *.dll ./imageformats/ ./platforms/ ./styles/ ./iconengines ./tls
artifacts:
- path: build/tidal-rpc.zip
name: tidal-rpc.zip
type: zip
deploy:
- provider: GitHub
release: v.$(APPVEYOR_BUILD_VERSION)
description: "[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3XY7W2XHHUZF2&source=url)"
tag: v.$(APPVEYOR_BUILD_VERSION)
auth_token:
secure: 4mag1bU9LGsHa+ZugAHSOhYdYmtSacUuBQI5smq17AkNvLBzUKKjjKfUoA2nQ4I7 # your encrypted token from GitHub
artifact: tidal-rpc.zip # upload all NuGet packages to release assets
draft: true
prerelease: false
on:
branch: master # release from master branch only
- # Mac
matrix:
only:
- job_name: Mac OSX (Clang)
# before_build:
# - export PATH=$HOME/Qt/6.4.0/macos/bin/:$PATH
build_script:
- mkdir build
- cd build
- cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=RELEASE ../ -DQt6_DIR=$HOME/Qt/6.4.0/macos/lib/cmake/Qt6 -DQt6CoreTools_DIR=$HOME/Qt/6.4.0/macos/lib/cmake/Qt6CoreTools -DQt6GuiTools_DIR=$HOME/Qt/6.4.0/macos/lib/cmake/Qt6GuiTools -DQt6WidgetsTools_DIR=$HOME/Qt/6.4.0/macos/lib/cmake/Qt6WidgetsTools ..
- cmake --build .
- $HOME/Qt/6.4.0/macos/bin/macdeployqt tidal-rpc.app -dmg
after_build:
- echo $APPVEYOR_BUILD_FOLDER
- ls
- pwd
artifacts:
- path: build/tidal-rpc.dmg
name: tidal-rpc.dmg
type: file
deploy:
- provider: GitHub
release: v.$(APPVEYOR_BUILD_VERSION)
description: "[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3XY7W2XHHUZF2&source=url)"
tag: v.$(APPVEYOR_BUILD_VERSION)
auth_token:
secure: 4mag1bU9LGsHa+ZugAHSOhYdYmtSacUuBQI5smq17AkNvLBzUKKjjKfUoA2nQ4I7 # your encrypted token from GitHub
artifact: tidal-rpc.dmg # upload all NuGet packages to release assets
draft: true
prerelease: false
on:
branch: master # release from master branch only