File tree 9 files changed +84
-23
lines changed
9 files changed +84
-23
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ matrix:
12
12
fast_finish : true
13
13
include :
14
14
# Linux builders, all docker images
15
- - env : IMAGE=android DEPLOY=1
15
+ - env : IMAGE=arm- android
16
16
- env : IMAGE=armhf-gnu
17
17
- env : IMAGE=cross DEPLOY=1
18
18
- env : IMAGE=linux-tested-targets DEPLOY=1
19
+ - env : IMAGE=dist-android DEPLOY=1
19
20
- env : IMAGE=dist-arm-linux DEPLOY=1
20
21
- env : IMAGE=dist-armv7-aarch64-linux DEPLOY=1
21
22
- env : IMAGE=dist-freebsd DEPLOY=1
Original file line number Diff line number Diff line change @@ -198,10 +198,6 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
198
198
" ) ;
199
199
}
200
200
}
201
-
202
- if target. contains ( "arm-linux-android" ) {
203
- need_cmd ( "adb" . as_ref ( ) ) ;
204
- }
205
201
}
206
202
207
203
for host in build. flags . host . iter ( ) {
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:16.04
2
+
3
+ RUN dpkg --add-architecture i386 && \
4
+ apt-get update && \
5
+ apt-get install -y --no-install-recommends \
6
+ g++ \
7
+ make \
8
+ file \
9
+ curl \
10
+ ca-certificates \
11
+ python2.7 \
12
+ git \
13
+ cmake \
14
+ unzip \
15
+ expect \
16
+ openjdk-9-jre \
17
+ sudo \
18
+ libstdc++6:i386 \
19
+ xz-utils \
20
+ libssl-dev \
21
+ pkg-config
22
+
23
+ WORKDIR /android/
24
+ ENV PATH=$PATH:/android/ndk-arm-9/bin:/android/sdk/tools:/android/sdk/platform-tools
25
+
26
+ COPY install-ndk.sh install-sdk.sh accept-licenses.sh /android/
27
+ RUN sh /android/install-ndk.sh
28
+ RUN sh /android/install-sdk.sh
29
+
30
+ RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
31
+ dpkg -i dumb-init_*.deb && \
32
+ rm dumb-init_*.deb
33
+
34
+ COPY start-emulator.sh /android/
35
+
36
+ ENTRYPOINT ["/usr/bin/dumb-init" , "--" , "/android/start-emulator.sh" ]
37
+
38
+ RUN curl -o /usr/local/bin/sccache \
39
+ https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-24-sccache-x86_64-unknown-linux-gnu && \
40
+ chmod +x /usr/local/bin/sccache
41
+
42
+ ENV RUST_CONFIGURE_ARGS \
43
+ --target=arm-linux-androideabi \
44
+ --arm-linux-androideabi-ndk=/android/ndk-arm-9
45
+
46
+ ENV SCRIPT python2.7 ../x.py test --target arm-linux-androideabi
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # Copyright 2016 The Rust Project Developers. See the COPYRIGHT
3
+ # file at the top-level directory of this distribution and at
4
+ # http://rust-lang.org/COPYRIGHT.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7
+ # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8
+ # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9
+ # option. This file may not be copied, modified, or distributed
10
+ # except according to those terms.
11
+
12
+ set -ex
13
+
14
+ cpgdb () {
15
+ cp android-ndk-r11c/prebuilt/linux-x86_64/bin/gdb /android/$1 /bin/$2 -gdb
16
+ cp android-ndk-r11c/prebuilt/linux-x86_64/bin/gdb-orig /android/$1 /bin/gdb-orig
17
+ cp -r android-ndk-r11c/prebuilt/linux-x86_64/share /android/$1 /share
18
+ }
19
+
20
+ # Prep the Android NDK
21
+ #
22
+ # See https://github.com/servo/servo/wiki/Building-for-Android
23
+ curl -O https://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
24
+ unzip -q android-ndk-r11c-linux-x86_64.zip
25
+ bash android-ndk-r11c/build/tools/make-standalone-toolchain.sh \
26
+ --platform=android-9 \
27
+ --toolchain=arm-linux-androideabi-4.9 \
28
+ --install-dir=/android/ndk-arm-9 \
29
+ --ndk-dir=/android/android-ndk-r11c \
30
+ --arch=arm
31
+ cpgdb ndk-arm-9 arm-linux-androideabi
32
+
33
+ rm -rf ./android-ndk-r11c-linux-x86_64.zip ./android-ndk-r11c
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -23,17 +23,13 @@ RUN dpkg --add-architecture i386 && \
23
23
WORKDIR /android/
24
24
ENV PATH=$PATH:/android/ndk-arm-9/bin:/android/sdk/tools:/android/sdk/platform-tools
25
25
26
- COPY install-ndk.sh install-sdk.sh accept-licenses.sh /android/
26
+ COPY install-ndk.sh /android/
27
27
RUN sh /android/install-ndk.sh
28
- RUN sh /android/install-sdk.sh
29
28
30
29
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
31
30
dpkg -i dumb-init_*.deb && \
32
31
rm dumb-init_*.deb
33
-
34
- COPY start-emulator.sh /android/
35
-
36
- ENTRYPOINT ["/usr/bin/dumb-init" , "--" , "/android/start-emulator.sh" ]
32
+ ENTRYPOINT ["/usr/bin/dumb-init" , "--" ]
37
33
38
34
RUN curl -o /usr/local/bin/sccache \
39
35
https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-25-sccache-x86_64-unknown-linux-musl && \
@@ -51,8 +47,4 @@ ENV RUST_CONFIGURE_ARGS \
51
47
--i686-linux-android-ndk=/android/ndk-x86-9 \
52
48
--aarch64-linux-android-ndk=/android/ndk-aarch64
53
49
54
- # Just a smoke test in dist to see if this works for now, we should expand this
55
- # to all the targets above eventually.
56
- ENV SCRIPT \
57
- python2.7 ../x.py test --target arm-linux-androideabi && \
58
- python2.7 ../x.py dist --target $TARGETS
50
+ ENV SCRIPT python2.7 ../x.py dist --target $TARGETS
Original file line number Diff line number Diff line change 11
11
12
12
set -ex
13
13
14
- cpgdb () {
15
- cp android-ndk-r11c/prebuilt/linux-x86_64/bin/gdb /android/$1 /bin/$2 -gdb
16
- cp android-ndk-r11c/prebuilt/linux-x86_64/bin/gdb-orig /android/$1 /bin/gdb-orig
17
- cp -r android-ndk-r11c/prebuilt/linux-x86_64/share /android/$1 /share
18
- }
19
-
20
14
# Prep the Android NDK
21
15
#
22
16
# See https://github.com/servo/servo/wiki/Building-for-Android
@@ -28,7 +22,6 @@ bash android-ndk-r11c/build/tools/make-standalone-toolchain.sh \
28
22
--install-dir=/android/ndk-arm-9 \
29
23
--ndk-dir=/android/android-ndk-r11c \
30
24
--arch=arm
31
- cpgdb ndk-arm-9 arm-linux-androideabi
32
25
bash android-ndk-r11c/build/tools/make-standalone-toolchain.sh \
33
26
--platform=android-21 \
34
27
--toolchain=aarch64-linux-android-4.9 \
You can’t perform that action at this time.
0 commit comments