Skip to content

Commit 4e69d2e

Browse files
committed
Merge dist-solaris with cross2 builder
1 parent a82891a commit 4e69d2e

File tree

4 files changed

+30
-63
lines changed

4 files changed

+30
-63
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ matrix:
115115
if: branch = auto
116116
- env: IMAGE=cross DEPLOY=1
117117
if: branch = auto
118+
- env: IMAGE=cross2 DEPLOY=1
119+
if: branch = auto
118120
- env: IMAGE=dist-aarch64-linux DEPLOY=1
119121
if: branch = auto
120122
- env: IMAGE=dist-android DEPLOY=1
@@ -125,8 +127,6 @@ matrix:
125127
if: branch = auto
126128
- env: IMAGE=dist-armv7-linux DEPLOY=1
127129
if: branch = auto
128-
- env: IMAGE=dist-fuchsia DEPLOY=1
129-
if: branch = auto
130130
- env: IMAGE=dist-i586-gnu-i686-musl DEPLOY=1
131131
if: branch = auto
132132
- env: IMAGE=dist-i686-freebsd DEPLOY=1

src/ci/docker/cross2/Dockerfile

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
FROM ubuntu:16.04
22

3-
RUN apt-get update && apt-get build-dep -y clang llvm && apt-get install -y \
3+
COPY scripts/cross-apt-packages.sh /scripts/
4+
RUN sh /scripts/cross-apt-packages.sh
5+
6+
RUN apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends \
47
build-essential \
5-
bzip2 \
6-
ca-certificates \
7-
cmake \
8-
curl \
9-
file \
10-
g++ \
11-
gdb \
12-
git \
138
libedit-dev \
14-
make \
9+
libgmp-dev \
10+
libisl-dev \
11+
libmpc-dev \
12+
libmpfr-dev \
1513
ninja-build \
1614
nodejs \
1715
python2.7-dev \
18-
sudo \
19-
xz-utils \
16+
software-properties-common \
2017
unzip
2118

19+
RUN apt-key adv --batch --yes --keyserver keyserver.ubuntu.com --recv-keys 74DA7924C5513486
20+
RUN add-apt-repository -y 'deb http://apt.dilos.org/dilos dilos2-testing main'
21+
2222
WORKDIR /tmp
23-
COPY dist-fuchsia/shared.sh dist-fuchsia/build-toolchain.sh /tmp/
24-
RUN /tmp/build-toolchain.sh
23+
COPY cross2/shared.sh cross2/build-fuchsia-toolchain.sh /tmp/
24+
COPY cross2/build-solaris-toolchain.sh /tmp/
25+
RUN /tmp/build-fuchsia-toolchain.sh
26+
RUN /tmp/build-solaris-toolchain.sh x86_64 amd64 solaris-i386
27+
RUN /tmp/build-solaris-toolchain.sh sparcv9 sparcv9 solaris-sparc
2528

2629
COPY scripts/sccache.sh /scripts/
2730
RUN sh /scripts/sccache.sh
@@ -32,10 +35,18 @@ ENV \
3235
CXX_x86_64_unknown_fuchsia=x86_64-unknown-fuchsia-clang++ \
3336
AR_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-ar \
3437
CC_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-clang \
35-
CXX_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-clang++
38+
CXX_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-clang++ \
39+
AR_sparcv9_sun_solaris=sparcv9-sun-solaris2.11-ar \
40+
CC_sparcv9_sun_solaris=sparcv9-sun-solaris2.11-sysroot \
41+
CXX_sparcv9_sun_solaris=sparcv9-sun-solaris2.11-g++ \
42+
AR_x86_64_sun_solaris=x86_64-sun-solaris2.11-ar \
43+
CC_x86_64_sun_solaris=x86_64-sun-solaris2.11-sysroot \
44+
CXX_x86_64_sun_solaris=x86_64-sun-solaris2.11-g++
3645

3746
ENV TARGETS=x86_64-unknown-fuchsia
3847
ENV TARGETS=$TARGETS,aarch64-unknown-fuchsia
48+
ENV TARGETS=$TARGETS,sparcv9-sun-solaris
49+
ENV TARGETS=$TARGETS,x86_64-sun-solaris
3950

4051
ENV RUST_CONFIGURE_ARGS --target=$TARGETS --enable-extended
41-
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS
52+
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS

src/ci/docker/dist-solaris/build-toolchain.sh renamed to src/ci/docker/cross2/build-solaris-toolchain.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,14 @@
1010
# except according to those terms.
1111

1212
set -ex
13+
source shared.sh
1314

1415
ARCH=$1
1516
LIB_ARCH=$2
1617
APT_ARCH=$3
1718
BINUTILS=2.28.1
1819
GCC=6.4.0
1920

20-
hide_output() {
21-
set +x
22-
on_err="
23-
echo ERROR: An error was encountered with the build.
24-
cat /tmp/build.log
25-
exit 1
26-
"
27-
trap "$on_err" ERR
28-
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
29-
PING_LOOP_PID=$!
30-
$@ &> /tmp/build.log
31-
trap - ERR
32-
kill $PING_LOOP_PID
33-
set -x
34-
}
35-
3621
# First up, build binutils
3722
mkdir binutils
3823
cd binutils

src/ci/docker/dist-solaris/Dockerfile

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)