forked from beeware/mobile-forge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
283 lines (235 loc) · 7.79 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
image: macos-monterey
skip_branch_with_pr: true
environment:
PYTHON_VERSION: 3.12.4
PYTHON_SHORT_VERSION: 3.12
CF_ACCESS_KEY_ID:
secure: +m1fzbrEPRecXKCCMn4uA781PAASzJSWAxuJj1c7ctLfWbi5oW4PMnowPK96XtQ5
CF_SECRET_ACCESS_KEY:
secure: siQTjK+IAmy+zcTSO0d/dnyU/SHC52+gaW8xOT3GFqW8dyRAWr7YXtCU0QvlIC5MFVnbEmgDcDKqINaWN1iD5Cuuw/QAFsF1L/zDnQSvAtE=
CF_ENDPOINT_URL:
secure: lSQBfrqIXIOAYhA0NGej7Pfll1wOSKTTFwQCl8N8lvI22uI5CA/UjRKaqw6KlIZMcXvqTP1w11CVqC2CWnyM3hK857X2tAe8nkO8KT0DCzw=
CF_BUCKET_NAME: flet-simple
matrix:
# - job_name: 'Android: websockets'
# job_group: build_android
# FORGE_ARCH: android
# FORGE_PACKAGES: >-
# websockets:12.0
# - job_name: 'iOS: websockets'
# job_group: build_ios
# FORGE_ARCH: iOS
# FORGE_PACKAGES: >-
# websockets:12.0
- job_name: 'Android arm64-v8a: opencv-python'
job_group: build_android
FORGE_ARCH: 'android:arm64-v8a'
FORGE_PACKAGES: numpy:2.0.0 opencv-python:4.10.0.84
- job_name: 'Android armeabi-v7a: opencv-python'
job_group: build_android
FORGE_ARCH: 'android:armeabi-v7a'
FORGE_PACKAGES: numpy:2.0.0 opencv-python:4.10.0.84
- job_name: 'Android x86_64: opencv-python'
job_group: build_android
FORGE_ARCH: 'android:x86_64'
FORGE_PACKAGES: numpy:2.0.0 opencv-python:4.10.0.84
- job_name: 'Android x86: opencv-python'
job_group: build_android
FORGE_ARCH: 'android:x86'
FORGE_PACKAGES: numpy:2.0.0 opencv-python:4.10.0.84
- job_name: 'iOS iphone arm64: opencv-python'
job_group: build_ios
FORGE_ARCH: 'iphoneos:arm64'
FORGE_PACKAGES: numpy:2.0.0 opencv-python:4.10.0.84
- job_name: 'iOS simulator arm64: opencv-python'
job_group: build_ios
FORGE_ARCH: 'iphonesimulator:arm64'
FORGE_PACKAGES: numpy:2.0.0 opencv-python:4.10.0.84
- job_name: 'iOS simulator x86_64: opencv-python'
job_group: build_ios
FORGE_ARCH: 'iphonesimulator:x86_64'
FORGE_PACKAGES: numpy:2.0.0 opencv-python:4.10.0.84
- job_name: 'Android: pydantic-core, pillow, lru-dict, contourpy, kiwisolver, aiohttp, bitarray, argon2-cffi-binding, bcrypt, cryptography, brotli, websockets'
job_group: build_android
FORGE_ARCH: android
FORGE_PACKAGES: >-
cffi:1.16.0
libjpeg:3.0.3
libpng:1.6.43
freetype:2.13.2
pillow:10.3.0
lru-dict:1.3.0
yarl:1.9.4
contourpy:1.2.1
kiwisolver:1.4.5
aiohttp:3.9.5
bitarray:2.9.2
argon2-cffi-bindings:21.2.0
bcrypt:4.1.3
cryptography:42.0.7
brotli:1.1.0
pydantic-core:2.18.4
websockets:12.0
- job_name: 'Android: numpy, matplotlib, pandas, blis'
job_group: build_android
FORGE_ARCH: android
FORGE_PACKAGES: >-
numpy:1.26.4
numpy:2.0.0
matplotlib:3.9.0
pandas:2.2.2
blis:0.9.1
- job_name: 'iOS: pillow, lru-dict, yarl, contourpy, kiwisolver, aiohttp, bitarray, websockets'
job_group: build_ios
FORGE_ARCH: iOS
FORGE_PACKAGES: >-
libjpeg:3.0.3
libpng:1.6.43
freetype:2.13.2
pillow:10.3.0
lru-dict:1.3.0
yarl:1.9.4
contourpy:1.2.1
kiwisolver:1.4.5
aiohttp:3.9.5
bitarray:2.9.2
websockets:12.0
- job_name: 'iOS: cffi, argon2-cffi-bindings, bcrypt, cryptography, brotli'
job_group: build_ios
FORGE_ARCH: iOS
FORGE_PACKAGES: >-
cffi:1.16.0
argon2-cffi-bindings:21.2.0
bcrypt:4.1.3
cryptography:42.0.7
brotli:1.1.0
- job_name: 'iOS: pydantic-core'
job_group: build_ios
FORGE_ARCH: iOS
FORGE_PACKAGES: >-
pydantic-core:2.18.4
- job_name: 'iOS: numpy, matplotlib, pandas, blis'
job_group: build_ios
FORGE_ARCH: iOS
FORGE_PACKAGES: >-
numpy:1.26.4
numpy:2.0.0
matplotlib:3.9.0
pandas:2.2.2
blis:0.9.1
- job_name: Re-build Simple index
job_group: rebuild_index
job_depends_on: build_android, build_ios
stack:
- python $PYTHON_SHORT_VERSION
on_success:
- sh: |
if test -d logs; then
find logs -type f -iname *.log -exec appveyor PushArtifact {} \;
fi
on_failure:
- sh: |
if test -d errors; then
find errors -type f -iname *.log -exec appveyor PushArtifact {} \;
fi
for:
# ======================================
# Build Android packages
# ======================================
- matrix:
only:
- job_group: build_android
environment:
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu-gce-c
NDK_VERSION: r27-beta2
install:
# download Python for Android
- python_android_dir=$HOME/projects/python-android
- curl -#OL https://github.com/flet-dev/python-android/releases/download/v${PYTHON_VERSION}/python-android-install-${PYTHON_VERSION}.tar.gz
- mkdir -p $python_android_dir
- tar -xzf python-android-install-${PYTHON_VERSION}.tar.gz -C $python_android_dir
# install Android NDK
- .ci/install_ndk.sh
# configure forge
- export PYTHON_ANDROID_SUPPORT=$python_android_dir
- source ./setup.sh $PYTHON_VERSION
# install Rust
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- . "$HOME/.cargo/env"
- export PATH="$PATH:$HOME/.cargo/bin"
- rustup target add aarch64-linux-android
- rustup target add arm-linux-androideabi
- rustup target add x86_64-linux-android
- rustup target add i686-linux-android
build_script:
- sh: |
IFS=' ' read -r -a packages <<< "$FORGE_PACKAGES"
for package in "${packages[@]}"; do
forge $FORGE_ARCH $package || exit 1
done
# cleanup
- rm dist/ninja-*
- rm dist/cmake-*
- rm dist/bzip2-*
- rm dist/xz-*
- rm dist/libffi-*
- rm dist/openssl-*
deploy_script:
- pip install boto3
- python .ci/publish-wheels.py dist
test: off
# ======================================
# Build iOS packages
# ======================================
- matrix:
only:
- job_group: build_ios
environment:
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
install:
# download Python for iOS
- python_ios_dir=$HOME/projects/python-ios
- curl -#OL https://github.com/flet-dev/python-ios/releases/download/v${PYTHON_VERSION}/python-ios-install-${PYTHON_VERSION}.tar.gz
- mkdir -p $python_ios_dir
- tar -xzf python-ios-install-${PYTHON_VERSION}.tar.gz -C $python_ios_dir
# install Rust
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- . "$HOME/.cargo/env"
- export PATH="$PATH:$HOME/.cargo/bin"
- rustup target add aarch64-apple-ios
- rustup target add aarch64-apple-ios-sim
- rustup target add x86_64-apple-ios
# configure forge
- export PYTHON_APPLE_SUPPORT=$python_ios_dir
- source ./setup.sh $PYTHON_VERSION
# refresh PATH
- export PATH="$PATH:$HOME/.cargo/bin"
build_script:
- sh: |
IFS=' ' read -r -a packages <<< "$FORGE_PACKAGES"
for package in "${packages[@]}"; do
forge $FORGE_ARCH $package || exit 1
done
# cleanup
- rm dist/ninja-*
- rm dist/cmake-*
- rm dist/bzip2-*
- rm dist/xz-*
- rm dist/libffi-*
- rm dist/openssl-*
deploy_script:
- pip install boto3
- python .ci/publish-wheels.py dist
test: off
# ======================================
# Rebuild Simple index
# ======================================
- matrix:
only:
- job_group: rebuild_index
environment:
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu
deploy_script:
- pip3 install boto3
- python .ci/rebuild-simple-index.py
test: off