-
Notifications
You must be signed in to change notification settings - Fork 128
/
.appveyor.yml
179 lines (139 loc) · 4.09 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
stack: python 3.9
branches:
only:
- master
# Note that builds run in the order the images are declared
image:
- Ubuntu2004
- macos-bigsur
- Visual Studio 2019
# Define the build configurations
environment:
GITHUB_API_KEY:
secure: w1zaTUARBAuhkAKUke5sBvSkVtlDGL8YfQxROzv5oGIynVJImn+KWGFVDxyjQore
matrix:
- BUILD_NAME: gcc_linux
- BUILD_NAME: clang_osx
#- BUILD_NAME: mingw_windows
# QTDIR: C:\Qt\6.2\mingw_64
# MINGW: C:\Qt\Tools\mingw810_64
- BUILD_NAME: msvc_windows
QTDIR: C:\Qt\6.2\msvc2019_64
# Exclude invalid build configurations
matrix:
exclude:
- image: Ubuntu2004
BUILD_NAME: mingw_windows
- image: Ubuntu2004
BUILD_NAME: msvc_windows
- image: Ubuntu2004
BUILD_NAME: clang_osx
- image: macos-bigsur
BUILD_NAME: mingw_windows
- image: macos-bigsur
BUILD_NAME: msvc_windows
- image: macos-bigsur
BUILD_NAME: gcc_linux
- image: Visual Studio 2019
BUILD_NAME: clang_osx
- image: Visual Studio 2019
BUILD_NAME: gcc_linux
configuration:
- debug
- release
# Do configuration-specific build steps
for:
# Linux GCC
- matrix:
only:
- image: Ubuntu2004
BUILD_NAME: gcc_linux
install:
# Configure CI bot git email/username
- git config --global user.name "AppVeyor CI Bot"
- git config --global user.email "[email protected]"
- git submodule update --init --recursive
- git submodule update --remote --merge
# Push the latest versions of the submodules to the repository - note that these Linux builds run first, so other build platforms don't do this step
- |
if [[ `git status --porcelain` ]]; then
git checkout master
git add lib/cereal
git add lib/dataslinger
git add lib/geometrize
git add resources/scripts
git add resources/templates
git add resources/web_export
git commit --message "Build bot updating submodule"
git remote rm origin
git remote add origin https://${GITHUB_API_KEY}@github.com/Tw1ddle/geometrize.git > /dev/null 2>&1
git push origin master
fi
- sudo apt update -qq --yes --force-yes
- sudo apt install libgl1-mesa-dev --yes --force-yes # Needed to avoid -lGL linker error
- export PATH=$HOME/Qt/6.1/gcc_64/bin:$PATH
before_build:
# Debug prints
- cd $HOME/Qt
- ls -a
- cd $APPVEYOR_BUILD_FOLDER
- qmake geometrize.pro
build_script:
- cd $APPVEYOR_BUILD_FOLDER
- make
# Clang OSX
- matrix:
only:
- image: macos-bigsur
BUILD_NAME: clang_osx
install:
- git submodule update --init --recursive
- export PATH=$HOME/Qt/6.1/macos/bin:$PATH
before_build:
# Debug prints
- cd $HOME/Qt
- ls -a
- cd $APPVEYOR_BUILD_FOLDER
- qmake geometrize.pro
build_script:
- cd $APPVEYOR_BUILD_FOLDER
- make
# Windows MSVC
- matrix:
only:
- image: Visual Studio 2019
BUILD_NAME: msvc_windows
install:
- git submodule update --init --recursive
- set PATH=%PATH%;%QTDIR%\bin
- call "%QTDIR%\bin\qtenv2.bat"
- call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
- set make=nmake.exe
before_build:
# Debug prints
- cd %QTDIR%
- ls -a
- cd %APPVEYOR_BUILD_FOLDER%
- qmake geometrize.pro
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- '%make%'
# # Windows Mingw
# - matrix:
# only:
# - image: Visual Studio 2019
# BUILD_NAME: mingw_windows
# install:
# - git submodule update --init --recursive
# - set PATH=%PATH%;%QTDIR%\bin;%MINGW%\bin
# - call "%QTDIR%\bin\qtenv2.bat"
# - set make=mingw32-make.exe
# before_build:
# # Debug prints
# - cd %QTDIR%
# - ls -a
# - cd %APPVEYOR_BUILD_FOLDER%
# - qmake geometrize.pro
# build_script:
# - cd %APPVEYOR_BUILD_FOLDER%
# - '%make%'