-
Notifications
You must be signed in to change notification settings - Fork 2
/
.appveyor.yml
174 lines (140 loc) · 4.78 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
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:
- 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 "appveyor@appveyor.org"
- 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 geometrize
git commit --message "Build bot updating submodule"
git remote rm origin
git remote add origin https://${GITHUB_API_KEY}@github.com/Tw1ddle/geometrize-installer.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:
- cd $APPVEYOR_BUILD_FOLDER
build_script:
- cd $APPVEYOR_BUILD_FOLDER
# Clang OSX
- matrix:
only:
- image: macos-bigsur
BUILD_NAME: clang_osx
install:
- echo "implement me"
before_build:
- cd $APPVEYOR_BUILD_FOLDER
build_script:
- cd $APPVEYOR_BUILD_FOLDER
# # Mingw Windows
# - matrix:
# only:
# - image: Visual Studio 2019
# BUILD_NAME: mingw_windows
# # Get the project submodules
# # Set the environment variables and paths to make
# 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:
# - cd %APPVEYOR_BUILD_FOLDER%
# # Get the Qt installer framework
# - cd scripts
# - appveyor_windows_get_ifw.bat
# - cd %APPVEYOR_BUILD_FOLDER%
# # Run qmake
# - qmake CONFIG+=%CONFIGURATION% installer.pro
# # Build the project
# build_script:
# - cd %APPVEYOR_BUILD_FOLDER%
# - '%make%'
# - ls -a
# - move geometrize_installer.exe geometrize_installer_%APPVEYOR_BUILD_NUMBER%_%APPVEYOR_BUILD_ID%_%BUILD_NAME%_%CONFIGURATION%.exe
# - echo geometrize_installer_%APPVEYOR_BUILD_NUMBER%_%APPVEYOR_BUILD_ID%_%BUILD_NAME%_%CONFIGURATION%.exe > __latest
# Windows MSVC
- matrix:
only:
- image: Visual Studio 2019
BUILD_NAME: msvc_windows
# Get the project submodules
# Set the environment variables and paths to make
install:
- git submodule update --init --recursive
- set PATH=%PATH%;C:\Qt\6.2\msvc2019_64\bin
- call "C:\Qt\6.2\msvc2019_64\bin\qtenv2.bat"
- call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
- set make=nmake.exe
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
# Get the Qt installer framework
- cd scripts
- appveyor_windows_get_ifw.bat
- cd %APPVEYOR_BUILD_FOLDER%
# Run qmake
- qmake CONFIG+=%CONFIGURATION% installer.pro
# Build the project
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- '%make%'
- ls -a
- move geometrize_installer.exe geometrize_installer_%APPVEYOR_BUILD_NUMBER%_%APPVEYOR_BUILD_ID%_%BUILD_NAME%_%CONFIGURATION%.exe
- echo geometrize_installer_%APPVEYOR_BUILD_NUMBER%_%APPVEYOR_BUILD_ID%_%BUILD_NAME%_%CONFIGURATION%.exe > __latest
# set_public: true
# folder: windows/%BUILD_NAME%