-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Upgrade Android SDK/NDK and refactor to use sdkmanager/avdmanager. #45580
Conversation
Looks great to me, thanks! r=me with a passing set of CI |
@kennytm I'm working on libc android ci, see rust-lang/libc#825. It's is necessary to pass |
3f3b2f8
to
29bdc33
Compare
So this is the final list of changes and rationale:
(The last |
All looks and sounds great to me, thanks so much for investigating all this @kennytm! |
* SDK tools is upgraded to 27.0.0. - Refactored to use `sdkmanager`/`avdmanager` instead of the deprecated `android` tool. * The Java version used by Android SDK is downgraded to OpenJDK-8, in order to download the SDK through HTTPS. * NDK is upgrade to r15c. - Dropped support for android-9 (2.3 / Gingerbread), the minimal supported version is now android-14 (4.0 / Ice Cream Sandwich). - Changed the default Android compiler from GCC to clang. - For details of change introduced by NDK r15, see https://github.com/android-ndk/ndk/wiki/Changelog-r15.
@bors r=alexcrichton |
📌 Commit c46b04c has been approved by |
ci: Upgrade Android SDK/NDK and refactor to use sdkmanager/avdmanager. * SDK tools is upgraded to 27.0.0. * Stopped using the deprecated `android` tool, instead use the recommended `sdkmanager` and `avdmanager`. * NDK is upgrade to r15c. The r15 series [dropped support for android-9](https://github.com/android-ndk/ndk/wiki/Changelog-r15) (2.3 / Gingerbread), the minimal supported version is now android-14 (4.0 / Ice Cream Sandwich). r? @alexcrichton (WIP, haven't confirmed if the change really works yet)
☀️ Test successful - status-appveyor, status-travis |
[beta] ci: Upgrade Android SDK/NDK and refactor to use sdkmanager/avdmanager. This is a backport of #45580 r? @alexcrichton
After the ndk update used to build libstd rust-lang/rust#45580, i686-linux-android binaries stopped working cross-rs#143. It's seem that the new toolchain is emitting instructions that the default qemu-i386 cpu does not support. Using -cpu n270 (common in android i686 phones), fix the problem. Fixes cross-rs#143.
Use -cpu n270 to run i686-linux-android binaries After the ndk update used to build libstd rust-lang/rust#45580, i686-linux-android binaries stopped working #143. It's seem that the new toolchain is emitting instructions that the default qemu-i386 cpu does not support. Using -cpu n270 (common in android i686 phones), fix the problem. Fixes #143.
SDK tools is upgraded to 27.0.0.
Stopped using the deprecated
android
tool, instead use the recommendedsdkmanager
andavdmanager
.NDK is upgrade to r15c.
The r15 series dropped support for android-9 (2.3 / Gingerbread), the minimal supported version is now android-14 (4.0 / Ice Cream Sandwich).
r? @alexcrichton
(WIP, haven't confirmed if the change really works yet)