This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +55
-7
lines changed Expand file tree Collapse file tree 5 files changed +55
-7
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:23.04
2+
3+ ARG DEBIAN_FRONTEND=noninteractive
4+ COPY scripts/android-base-apt-get.sh /scripts/
5+ RUN sh /scripts/android-base-apt-get.sh
6+
7+ COPY scripts/android-ndk.sh /scripts/
8+ RUN . /scripts/android-ndk.sh && \
9+ download_ndk android-ndk-r26d-linux.zip
10+
11+ RUN dpkg --add-architecture i386 && \
12+ apt-get update && \
13+ apt-get install -y --no-install-recommends \
14+ libgl1-mesa-glx \
15+ libpulse0 \
16+ libstdc++6:i386 \
17+ openjdk-8-jre-headless \
18+ tzdata \
19+ wget \
20+ python3
21+
22+ COPY scripts/android-sdk.sh /scripts/
23+ COPY scripts/android-sdk-manager.py /scripts/
24+ COPY host-x86_64/aarch64-android/android-sdk.lock /android/sdk/android-sdk.lock
25+ RUN /scripts/android-sdk.sh
26+
27+ ENV PATH=$PATH:/android/sdk/emulator
28+ ENV PATH=$PATH:/android/sdk/tools
29+ ENV PATH=$PATH:/android/sdk/platform-tools
30+
31+ ENV TARGETS=aarch64-linux-android
32+
33+ ENV RUST_CONFIGURE_ARGS --android-ndk=/android/ndk/
34+
35+ ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target $TARGETS
36+
37+ COPY scripts/sccache.sh /scripts/
38+ RUN sh /scripts/sccache.sh
39+
40+ COPY scripts/android-start-emulator.sh /scripts/
41+ ENTRYPOINT ["/scripts/android-start-emulator.sh" , "arm64-v8a" , "auto" ]
Original file line number Diff line number Diff line change 1+ emulator emulator-linux_x64-11772612.zip 974ad0591834a9fa3db307e49cdba352462e5f1e
2+ patcher;v4 3534162-studio.sdk-patcher.zip 046699c5e2716ae11d77e0bad814f7f33fab261e
3+ platform-tools platform-tools_r34.0.5-linux.zip 96097475cf7b279fdd8f218f5d043ffe94104ec3
4+ platforms;android-21 android-21_r02.zip 53536556059bb29ae82f414fd2e14bc335a4eb4c
5+ system-images;android-21;default;arm64-v8a sys-img/android/arm64-v8a-21_r04.zip c4375f1b4b4cd21a8617660e25f621cedcbd8332
6+ tools sdk-tools-linux-4333796.zip 8c7c28554a32318461802c1291d76fccfafde054
Original file line number Diff line number Diff line change @@ -38,4 +38,4 @@ COPY scripts/sccache.sh /scripts/
3838RUN sh /scripts/sccache.sh
3939
4040COPY scripts/android-start-emulator.sh /scripts/
41- ENTRYPOINT ["/scripts/android-start-emulator.sh" ]
41+ ENTRYPOINT ["/scripts/android-start-emulator.sh" , "armeabi-v7a" , "classic" ]
Original file line number Diff line number Diff line change 66# emulator identify the system
77export SHELL=/bin/bash
88
9- # Using the default qemu2 engine makes time::tests::since_epoch fails because
10- # the emulator date is set to unix epoch (in armeabi-v7a-18 image). Using
11- # classic engine the emulator starts with the current date and the tests run
12- # fine. If another image is used, this need to be evaluated again.
13- nohup nohup emulator @armeabi-v7a-18 \
14- -engine classic -no-window -partition-size 2047 0< & - & > /dev/null &
9+ nohup nohup emulator @$1 -21 \
10+ -engine $2 -no-window -no-audio -partition-size 2047 0< & - & > /dev/null &
11+
12+ shift 2
1513
1614exec " $@ "
Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ auto:
110110 - image : arm-android
111111 << : *job-linux-8c
112112
113+ - image : aarch64-android
114+ << : *job-linux-8c
115+
113116 - image : armhf-gnu
114117 << : *job-linux-8c
115118
You can’t perform that action at this time.
0 commit comments