Refactor Android build workflow: explicit SDK setup, unified /opt/android-deps prefix#21
Draft
Refactor Android build workflow: explicit SDK setup, unified /opt/android-deps prefix#21
Conversation
…ps prefix for cross-compiled libs Co-authored-by: Creeper19472 <38857196+Creeper19472@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor Android SDK setup workflow
Refactor Android build workflow: explicit SDK setup, unified /opt/android-deps prefix
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The build workflow lacked an explicit Android SDK/NDK download step and cross-compiled libraries were scattered across
/tmpwith library-specific paths. This refactor structures each Android build job into four clear phases: SDK download → cross-compile deps → build wheels → upload.Changes
Android SDK download step (
wheels.yml)Added to all three build jobs (
build_dependency_packages,build_independent_packages,build_dependent_packages). Runs only on Linux (Android targets):Unified cross-compile prefix for Android deps
All three library build scripts now install to
/opt/android-deps/${ANDROID_ABI}instead of per-library paths under/tmp:build_libjpeg.sh:/tmp/libjpeg-install-${ABI}→/opt/android-deps/${ABI}build_zlib.sh:/tmp/zlib-install-${ABI}→/opt/android-deps/${ABI}build_libtiff.sh:/tmp/libtiff-install-${ABI}→/opt/android-deps/${ABI}Updated library discovery
cross_compile_libs_detect.patch: replaced three separate/tmp/*-install-*/includeglobs with a singleglob('/opt/android-deps/*/include')that covers all libs per ABI in one passsetup_cross_compile_env.sh: added/opt/android-deps/*as a primary search locationcibuildwheel env passthrough
CIBW_ENVIRONMENT_PASS_LINUXin all three jobs now includesANDROID_SDK_ROOT ANDROID_HOME ANDROID_NDK_ROOTso the SDK paths are available inside the cibuildwheel build environment.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.