Skip to content

Commit fac5683

Browse files
committed
Package and upload
1 parent 6ce38fa commit fac5683

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.appveyor.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,49 @@ for:
107107
- p4a --help
108108
- p4a create --requirements python3,numpy --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir $ANDROID_SDK_ROOT --ndk-dir $ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name serious_python
109109

110+
# package
111+
- BUNDLE_NAME=libpythonbundle.so
112+
113+
# arm64-v8a
114+
- pushd ~/.python-for-android/dists/serious_python/_python_bundle__arm64-v8a/_python_bundle
115+
- zip -r $BUNDLE_NAME .
116+
- mv $BUNDLE_NAME ../../libs/arm64-v8a
117+
- popd
118+
119+
# armeabi-v7a
120+
- pushd ~/.python-for-android/dists/serious_python/_python_bundle__armeabi-v7a/_python_bundle
121+
- zip -r $BUNDLE_NAME .
122+
- mv $BUNDLE_NAME ../../libs/armeabi-v7a
123+
- popd
124+
125+
# armeabi-v7a
126+
- pushd ~/.python-for-android/dists/serious_python/_python_bundle__x86_64/_python_bundle
127+
- zip -r $BUNDLE_NAME .
128+
- mv $BUNDLE_NAME ../../libs/x86_64
129+
- popd
130+
131+
# package all .so files
132+
- DIST_FILE_NAME=python-android-dist-v$APPVEYOR_BUILD_VERSION.zip
133+
- pushd ~/.python-for-android/dists/serious_python/libs
134+
- zip -r $DIST_FILE_NAME .
135+
- appveyor PushArtifact $DIST_FILE_NAME -DeploymentName python-dist
136+
- popd
137+
138+
# package hostpython
139+
- HOSTPYTHON_FILE_NAME=hostpython-linux-v$APPVEYOR_BUILD_VERSION.zip
140+
- pushd ~/.python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build
141+
- zip -r $HOSTPYTHON_FILE_NAME .
142+
- appveyor PushArtifact $HOSTPYTHON_FILE_NAME -DeploymentName hostpython-linux
143+
- popd
144+
145+
deploy:
146+
provider: GitHub
147+
auth_token: $(GITHUB_TOKEN)
148+
release: $(APPVEYOR_REPO_TAG_NAME)
149+
artifact: python-dist, hostpython-linux
150+
on:
151+
APPVEYOR_REPO_TAG: true
152+
110153
# =========================================
111154
# Publish serious_python package to pub.dev
112155
# =========================================

0 commit comments

Comments
 (0)