Skip to content
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

Update xargo. #351

Merged
merged 5 commits into from
Nov 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build-docker-image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

cd docker

Expand Down
10 changes: 7 additions & 3 deletions ci/azure-install-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

steps:
- bash: |
set -e
set -euo pipefail

if command -v rustup; then
echo `command -v rustup` `rustup -V` already installed
rustup self update
Expand All @@ -17,13 +18,16 @@ steps:
displayName: Install rustup

- bash: |
set -e
set -euo pipefail

rustup update $TOOLCHAIN
rustup default $TOOLCHAIN
displayName: Install rust

- bash: |
set -ex
set -x
set -euo pipefail

rustup -V
rustc -Vv
cargo -V
Expand Down
21 changes: 11 additions & 10 deletions ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

function retry {
local tries=${TRIES-5}
Expand Down Expand Up @@ -41,7 +42,7 @@ main() {
export QEMU_STRACE=1

# test `cross check`
if [ ! -z $STD ]; then
if [[ ! -z ${STD:-} ]]; then
td=$(mktemp -d)
cargo init --lib --name foo $td
pushd $td
Expand All @@ -52,7 +53,7 @@ main() {
fi

# `cross build` test for targets where `std` is not available
if [ -z "$STD" ]; then
if [[ -z "${STD:-}" ]]; then
td=$(mktemp -d)

git clone \
Expand Down Expand Up @@ -98,9 +99,9 @@ EOF
rm -rf $td
fi

if [ $RUN ]; then
if [[ ${RUN:-} ]]; then
# `cross test` test
if [ $DYLIB ]; then
if [[ ${DYLIB:-} ]]; then
td=$(mktemp -d)

pushd $td
Expand Down Expand Up @@ -150,15 +151,15 @@ EOF
fi

# Test C++ support
if [ $CPP ]; then
if [[ ${CPP:-} ]]; then
td=$(mktemp -d)

git clone --depth 1 https://github.com/japaric/hellopp $td

pushd $td
cargo update -p gcc
retry cargo fetch
if [ $RUN ]; then
if [[ ${RUN:-} ]]; then
cross_run --target $TARGET
else
cross build --target $TARGET
Expand All @@ -170,7 +171,7 @@ EOF
}

cross_run() {
if [ -z "$RUNNERS" ]; then
if [[ -z "${RUNNERS:-}" ]]; then
cross run "$@"
else
for runner in $RUNNERS; do
Expand All @@ -181,7 +182,7 @@ cross_run() {
}

cross_test() {
if [ -z "$RUNNERS" ]; then
if [[ -z "${RUNNERS:-}" ]]; then
cross test "$@"
else
for runner in $RUNNERS; do
Expand All @@ -192,7 +193,7 @@ cross_test() {
}

cross_bench() {
if [ -z "$RUNNERS" ]; then
if [[ -z "${RUNNERS:-}" ]]; then
cross bench "$@"
else
for runner in $RUNNERS; do
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.aarch64-linux-android
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY android-system.sh /
RUN /android-system.sh arm64

COPY qemu.sh /
RUN /qemu.sh aarch64 android
RUN /qemu.sh aarch64

RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.aarch64-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-arm64-cross

COPY qemu.sh /
RUN /qemu.sh aarch64 linux softmmu
RUN /qemu.sh aarch64 softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.arm-linux-androideabi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY android-system.sh /
RUN /android-system.sh arm

COPY qemu.sh /
RUN /qemu.sh arm android
RUN /qemu.sh arm

RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.armv7-linux-androideabi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY android-system.sh /
RUN /android-system.sh arm

COPY qemu.sh /
RUN /qemu.sh arm android
RUN /qemu.sh arm

RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.armv7-unknown-linux-gnueabihf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-armhf-cross

COPY qemu.sh /
RUN /qemu.sh arm linux softmmu
RUN /qemu.sh arm softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.i686-linux-android
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN /android-system.sh x86
#
# Running with qemu works as expected
COPY qemu.sh /
RUN /qemu.sh i386 android
RUN /qemu.sh i386

RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.i686-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get install -y --no-install-recommends \
g++-multilib

COPY qemu.sh /
RUN /qemu.sh i386 linux softmmu
RUN /qemu.sh i386 softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.mips-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-mips-cross

COPY qemu.sh /
RUN /qemu.sh mips linux softmmu
RUN /qemu.sh mips softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.mips64el-unknown-linux-gnuabi64
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-mips64el-cross

COPY qemu.sh /
RUN /qemu.sh mips64el linux softmmu
RUN /qemu.sh mips64el softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.mipsel-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-mipsel-cross

COPY qemu.sh /
RUN /qemu.sh mipsel linux softmmu
RUN /qemu.sh mipsel softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.powerpc-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-powerpc-cross

COPY qemu.sh /
RUN /qemu.sh ppc linux softmmu
RUN /qemu.sh ppc softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.powerpc64-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-ppc64-cross

COPY qemu.sh /
RUN /qemu.sh ppc64 linux softmmu
RUN /qemu.sh ppc64 softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.powerpc64le-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-ppc64el-cross

COPY qemu.sh /
RUN /qemu.sh ppc64le linux softmmu
RUN /qemu.sh ppc64le softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.s390x-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-s390x-cross

COPY qemu.sh /
RUN /qemu.sh s390x linux softmmu
RUN /qemu.sh s390x softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.sparc64-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y --no-install-recommends \
libc6-dev-sparc64-cross

COPY qemu.sh /
RUN /qemu.sh sparc64 linux softmmu
RUN /qemu.sh sparc64 softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.x86_64-linux-android
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN /android-system.sh x86_64

# Using qemu allows older host cpus (without sse4) to execute the target binaries
COPY qemu.sh /
RUN /qemu.sh x86_64 android
RUN /qemu.sh x86_64

RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.x86_64-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get install -y --no-install-recommends \
zlib1g-dev

COPY qemu.sh /
RUN /qemu.sh x86_64 linux softmmu
RUN /qemu.sh x86_64 softmmu

COPY dropbear.sh /
RUN /dropbear.sh
Expand Down
3 changes: 2 additions & 1 deletion docker/android-ndk.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

NDK_URL=https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip

Expand Down
5 changes: 4 additions & 1 deletion docker/android-system.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

main() {
local arch=$1
Expand Down Expand Up @@ -89,11 +90,13 @@ EOF
# FATAL: kernel did not supply AT_SECURE
sed -i -e 's/if (!kernel_supplied_AT_SECURE)/if (false)/g' bionic/linker/linker_environ.cpp

set +u
source build/envsetup.sh
lunch aosp_$arch-user
mmma bionic/
mmma external/mksh/
mmma system/core/toolbox/
set -u

if [ $arch = "arm" ]; then
mv out/target/product/generic/system/ /
Expand Down
3 changes: 2 additions & 1 deletion docker/cmake.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

main() {
local version=3.5.1
Expand Down
3 changes: 2 additions & 1 deletion docker/common.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

apt-get update

Expand Down
3 changes: 2 additions & 1 deletion docker/dragonfly.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

main() {
local binutils=2.25.1 \
Expand Down
3 changes: 2 additions & 1 deletion docker/dropbear.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

main() {
local version=2019.78 \
Expand Down
2 changes: 1 addition & 1 deletion docker/emscripten-entry.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
set -euo pipefail

export HOME=/emsdk-portable/

Expand Down
3 changes: 2 additions & 1 deletion docker/emscripten.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

main() {
local dependencies=(
Expand Down
3 changes: 2 additions & 1 deletion docker/freebsd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
set -x
set -euo pipefail

main() {
local arch=$1
Expand Down
Loading