-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
183 lines (142 loc) · 6.62 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
version: 0.7.{build}
configuration:
- Release
environment:
#APPVEYOR_VNC_PASSWORD: alive_rev
#APPVEYOR_VNC_BLOCK: false
matrix:
- job_name: macOS
appveyor_build_worker_image: macos-monterey
- job_name: Linux
appveyor_build_worker_image: Ubuntu
- job_name: Windows32
appveyor_build_worker_image: Visual Studio 2019
- job_name: Windows64
appveyor_build_worker_image: Visual Studio 2019
for:
-
matrix:
only:
- job_name: macOS
platform:
- x64
#init:
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-vnc.sh' | bash -e -
install:
- git submodule update --init --recursive --depth=1
build_script:
- echo $PATH
- export LDFLAGS="-L$HOME/Qt/5.15.2/clang_64/lib"
- export CPPFLAGS="-I$HOME/Qt/5.15.2/clang_64/include"
- echo 'export PATH="$HOME/Qt/5.15.2/clang_64/bin:$PATH"' >> ~/.bash_profile
- source ~/.bash_profile
- export QT_DIR=$HOME/Qt
- export PATH="$HOME/Qt/5.15.2/clang_64/bin:$PATH"
- cmake --version
- mkdir build
- cd build
- cmake -DQt5_DIR=$HOME/Qt/5.15.2/clang_64/lib/cmake/Qt5 -DCMAKE_PREFIX_PATH=$HOME/Qt/5.15.2/clang_64 -DBUILD_NUMBER=$(Build.BuildId) -G"Unix Makefiles" ..
- make -j4
#- cpack -G DragNDrop
artifacts:
- path: 'build/qt-editor-0.1.1-Darwin.dmg'
name: qt-editor-macOS
-
matrix:
only:
- job_name: Linux
platform:
- x64
install:
- git submodule update --init --recursive --depth=1
build_script:
- sudo apt-get update
- echo 'export PATH=$PATH:$HOME/Qt/5.15.2/gcc_64/bin' >> ~/.profile
- echo 'export PATH=$PATH:~/.local/bin' >> ~/.profile
- source ~/.profile
- cmake --version
- mkdir build
- cd build
- cmake -DQt5_DIR=$HOME/Qt/5.15.2/gcc_64/lib/cmake/Qt5 -DCMAKE_PREFIX_PATH=$HOME/Qt/5.15.2/gcc_64 -DBUILD_NUMBER=$(Build.BuildId) -G"Unix Makefiles" ..
- make -j4
#- cpack -G DEB
artifacts:
- path: 'build/qt-editor-0.1.1-Linux.deb'
name: qt-editor-linux
-
matrix:
only:
- job_name: Windows32
platform:
- x86
clone_folder: c:\editor
install:
- git submodule update --init --recursive --depth=1
build_script:
- mkdir build
- cd build
- echo %platform%
- echo %APPVEYOR_BUILD_NUMBER%
- set QT_DIR=C:\Qt\5.15.2\msvc2019
- set PATH=%PATH%;%QT_DIR%;%QT_DIR%\bin
- echo %PATH%
- cmake .. -DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% -DCI_PROVIDER=AppVeyor -G "Visual Studio 16 2019" -A Win32
- cmake --build . --config %configuration% -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%
- copy C:\editor\build\%CONFIGURATION%\qt-editor.exe C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\qt-editor.exe
- copy %QT_DIR%\bin\Qt5Multimedia.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Multimedia.dll
- copy %QT_DIR%\bin\Qt5Widgets.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Widgets.dll
- copy %QT_DIR%\bin\Qt5Gui.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Gui.dll
- copy %QT_DIR%\bin\Qt5Core.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Core.dll
- copy %QT_DIR%\bin\Qt5Network.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Network.dll
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\audio
- copy %QT_DIR%\plugins\audio\qtaudio_wasapi.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\audio\qtaudio_wasapi.dll
- copy %QT_DIR%\plugins\audio\qtaudio_windows.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\audio\qtaudio_windows.dll
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\platforms
- copy %QT_DIR%\plugins\platforms\qwindows.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\platforms\qwindows.dll
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\styles
- copy %QT_DIR%\plugins\styles\qwindowsvistastyle.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\styles\qwindowsvistastyle.dll
- 7z a Editor_%CONFIGURATION%_x86_%APPVEYOR_BUILD_NUMBER%.zip C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%
artifacts:
- path: build\Editor*.zip
name: Editor_$(configuration)_$(APPVEYOR_BUILD_NUMBER)
-
matrix:
only:
- job_name: Windows64
platform:
- x64
clone_folder: c:\editor
install:
- git submodule update --init --recursive --depth=1
build_script:
- mkdir build
- cd build
- echo %platform%
- echo %APPVEYOR_BUILD_NUMBER%
- set QT_DIR=C:\Qt\5.15.2\msvc2019_64
- set PATH=%PATH%;%QT_DIR%;%QT_DIR%\bin
- echo %PATH%
- cmake .. -DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% -DCI_PROVIDER=AppVeyor -G "Visual Studio 16 2019"
- cmake --build . --config %configuration% -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%
- copy C:\editor\build\%CONFIGURATION%\qt-editor.exe C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\qt-editor.exe
- copy %QT_DIR%\bin\Qt5Multimedia.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Multimedia.dll
- copy %QT_DIR%\bin\Qt5Widgets.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Widgets.dll
- copy %QT_DIR%\bin\Qt5Gui.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Gui.dll
- copy %QT_DIR%\bin\Qt5Core.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Core.dll
- copy %QT_DIR%\bin\Qt5Network.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\Qt5Network.dll
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\audio
- copy %QT_DIR%\plugins\audio\qtaudio_wasapi.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\audio\qtaudio_wasapi.dll
- copy %QT_DIR%\plugins\audio\qtaudio_windows.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\audio\qtaudio_windows.dll
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\platforms
- copy %QT_DIR%\plugins\platforms\qwindows.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\platforms\qwindows.dll
- mkdir C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\styles
- copy %QT_DIR%\plugins\styles\qwindowsvistastyle.dll C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%\plugins\styles\qwindowsvistastyle.dll
- 7z a Editor_%CONFIGURATION%_x64_%APPVEYOR_BUILD_NUMBER%.zip C:\editor\Editor_%APPVEYOR_BUILD_NUMBER%
artifacts:
- path: build\Editor*.zip
name: Editor_$(configuration)_$(APPVEYOR_BUILD_NUMBER)
test: false