forked from beeware/mobile-forge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
316 lines (265 loc) · 9.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
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
image: macos-monterey
skip_branch_with_pr: true
environment:
PYTHON_VERSION: 3.12.7
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
GEMFURY_TOKEN:
secure: trYGM65OQ1+HYnOYOe/NOHrofLpP3bz64nHwVWPJhiUIYll3MrrQd7ilFNp+zSkI
MOBILE_FORGE_CACHE_DOWNLOADS_OFF: 1
matrix:
- job_name: 'Android: zope.interface 7.2'
job_group: build_android
FORGE_ARCH: android
FORGE_PACKAGES: >-
zope.interface:7.2
BUILD_NUMBER: 1
- job_name: 'iOS: zope.interface 7.2'
job_group: build_ios
FORGE_ARCH: iOS
FORGE_PACKAGES: >-
zope.interface:7.2
BUILD_NUMBER: 1
# ==================================================
# - job_name: 'Android arm64-v8a: opencv-python'
# job_group: build_android
# FORGE_ARCH: 'android:arm64-v8a'
# FORGE_PACKAGES: numpy:2.1.1 opencv-python:4.10.0.84
# BUILD_NUMBER: 1
# - job_name: 'Android armeabi-v7a: opencv-python'
# job_group: build_android
# FORGE_ARCH: 'android:armeabi-v7a'
# FORGE_PACKAGES: numpy:2.1.1 opencv-python:4.10.0.84
# BUILD_NUMBER: 1
# - job_name: 'Android x86_64: opencv-python'
# job_group: build_android
# FORGE_ARCH: 'android:x86_64'
# FORGE_PACKAGES: numpy:2.1.1 opencv-python:4.10.0.84
# BUILD_NUMBER: 1
# - job_name: 'Android x86: opencv-python'
# job_group: build_android
# FORGE_ARCH: 'android:x86'
# FORGE_PACKAGES: numpy:2.1.1 opencv-python:4.10.0.84
# BUILD_NUMBER: 1
# - job_name: 'iOS iphone arm64: opencv-python'
# job_group: build_ios
# FORGE_ARCH: 'iphoneos:arm64'
# FORGE_PACKAGES: numpy:2.1.1 opencv-python:4.10.0.84
# BUILD_NUMBER: 1
# - job_name: 'iOS simulator arm64: opencv-python'
# job_group: build_ios
# FORGE_ARCH: 'iphonesimulator:arm64'
# FORGE_PACKAGES: numpy:2.1.1 opencv-python:4.10.0.84
# BUILD_NUMBER: 1
# - job_name: 'iOS simulator x86_64: opencv-python'
# job_group: build_ios
# FORGE_ARCH: 'iphonesimulator:x86_64'
# FORGE_PACKAGES: numpy:2.1.1 opencv-python:4.10.0.84
# BUILD_NUMBER: 1
# - 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.17.1
# flet-libcpp-shared:27.2.12479018
# flet-libjpeg:3.0.90
# flet-libpng:1.6.43
# flet-libfreetype:2.13.3
# pillow:10.4.0
# lru-dict:1.3.0
# yarl:1.11.1
# contourpy:1.3.0
# kiwisolver:1.4.7
# aiohttp:3.9.5
# bitarray:2.9.2
# argon2-cffi-bindings:21.2.0
# bcrypt:4.2.0
# cryptography:43.0.1
# brotli:1.1.0
# pydantic-core:2.23.3
# websockets:13.0.1
# time-machine:2.16.0
# markupsafe:2.1.5
# BUILD_NUMBER: 1
# - job_name: 'Android: numpy, matplotlib, pandas, blis'
# job_group: build_android
# FORGE_ARCH: android
# FORGE_PACKAGES: >-
# flet-libcpp-shared:27.2.12479018
# numpy:1.26.4
# numpy:2.1.1
# flet-libjpeg:3.0.90
# matplotlib:3.9.2
# pandas:2.2.2
# blis:1.0.0
# BUILD_NUMBER: 1
# - job_name: 'iOS: pillow, lru-dict, yarl, contourpy, kiwisolver, aiohttp, bitarray, websockets'
# job_group: build_ios
# FORGE_ARCH: iOS
# FORGE_PACKAGES: >-
# flet-libjpeg:3.0.90
# flet-libpng:1.6.43
# flet-libfreetype:2.13.3
# pillow:10.4.0
# lru-dict:1.3.0
# yarl:1.11.1
# contourpy:1.3.0
# kiwisolver:1.4.7
# aiohttp:3.9.5
# bitarray:2.9.2
# websockets:13.0.1
# time-machine:2.16.0
# markupsafe:2.1.5
# BUILD_NUMBER: 1
# - job_name: 'iOS: cffi, argon2-cffi-bindings, bcrypt, cryptography, brotli'
# job_group: build_ios
# FORGE_ARCH: iOS
# FORGE_PACKAGES: >-
# cffi:1.17.1
# argon2-cffi-bindings:21.2.0
# bcrypt:4.2.0
# cryptography:43.0.1
# brotli:1.1.0
# BUILD_NUMBER: 1
# - job_name: 'iOS: pydantic-core'
# job_group: build_ios
# FORGE_ARCH: iOS
# FORGE_PACKAGES: >-
# pydantic-core:2.23.3
# BUILD_NUMBER: 1
# - job_name: 'iOS: numpy, matplotlib, pandas, blis'
# job_group: build_ios
# FORGE_ARCH: iOS
# FORGE_PACKAGES: >-
# numpy:1.26.4
# numpy:2.1.1
# flet-libjpeg:3.0.90
# matplotlib:3.9.2
# pandas:2.2.2
# blis:1.0.0
# BUILD_NUMBER: 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: r27c
install:
- sudo apt install sqlite3
- . .ci/common.sh
# download Python for Android
- python_android_dir=$HOME/projects/python-build/android
- curl -#OL https://github.com/flet-dev/python-build/releases/download/v${PYTHON_SHORT_VERSION}/python-android-mobile-forge-${PYTHON_SHORT_VERSION}.tar.gz
- mkdir -p $python_android_dir
- tar -xzf python-android-mobile-forge-${PYTHON_SHORT_VERSION}.tar.gz -C $python_android_dir
# install Android NDK
- .ci/install_ndk.sh
# 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
# configure forge
- export MOBILE_FORGE_ANDROID_SUPPORT_PATH=$python_android_dir
- source ./setup.sh $PYTHON_VERSION
build_script:
- sh: |
IFS=' ' read -r -a packages <<< "$FORGE_PACKAGES"
for package in "${packages[@]}"; do
forge $FORGE_ARCH $package:$BUILD_NUMBER || exit 1
done
# cleanup
- rm dist/bzip2-*
- rm dist/xz-*
- rm dist/openssl-*
- rm dist/libffi-*
deploy_script:
# - pip install boto3
# - python .ci/publish-wheels.py dist
- publish_to_pypi dist/*.whl
test: off
# ======================================
# Build iOS packages
# ======================================
- matrix:
only:
- job_group: build_ios
environment:
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
install:
- . .ci/common.sh
# download Python for iOS
- python_ios_dir=$HOME/projects/python-build/darwin/Python-Apple-support
- curl -#OL https://github.com/flet-dev/python-build/releases/download/v${PYTHON_SHORT_VERSION}/python-ios-mobile-forge-${PYTHON_SHORT_VERSION}.tar.gz
- mkdir -p $python_ios_dir
- tar -xzf python-ios-mobile-forge-${PYTHON_SHORT_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 MOBILE_FORGE_IOS_SUPPORT_PATH=$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:$BUILD_NUMBER || exit 1
done
# cleanup
- rm dist/bzip2-*
- rm dist/xz-*
- rm dist/libffi-*
- rm dist/openssl-*
deploy_script:
# - pip install boto3
# - python .ci/publish-wheels.py dist
- publish_to_pypi dist/*.whl
test: off
# ======================================
# Rebuild Simple index
# ======================================
- matrix:
only:
- job_group: rebuild_index
environment:
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu
deploy_script:
- python -m ensurepip --upgrade
- pip3 install --upgrade setuptools
- pip3 install boto3
- python .ci/rebuild-simple-index.py
test: off