From 435db78809fb7b22bbcdbd9df45dded44e500510 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Thu, 17 Mar 2016 13:15:37 +0100 Subject: Update CI from japaric/rust-everywhere --- ci/before_deploy.sh | 5 +++- ci/install.sh | 66 ++++++++++++++++++++++++++++++++--------------------- ci/script.sh | 40 ++++++++++++++++++++++++-------- 3 files changed, 74 insertions(+), 37 deletions(-) (limited to 'ci') diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 6493f96..099ae65 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -2,6 +2,9 @@ set -ex +# Generate artifacts for release +cargo build --target $TARGET --release + # create a "staging" directory mkdir staging @@ -10,5 +13,5 @@ cp target/$TARGET/release/ilc* staging cd staging -# release tarball will look like 'rust-everywhere-v1.2.3-x86_64-unknown-linux-gnu.tar.gz' +# release tarball will look like 'ilc-unknown-linux-gnu.tar.gz' tar czf ../${PROJECT_NAME}-${TARGET}.tar.gz * diff --git a/ci/install.sh b/ci/install.sh index e4bd198..9d56f57 100644 --- a/ci/install.sh +++ b/ci/install.sh @@ -2,32 +2,49 @@ set -ex -case $TARGET in - # Install standard libraries needed for cross compilation - arm-unknown-linux-gnueabihf | \ - i686-apple-darwin | \ - i686-unknown-linux-gnu | \ - x86_64-unknown-linux-musl) - if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then - # information about the cross compiler - arm-linux-gnueabihf-gcc -v - - # tell cargo which linker to use for cross compilation - mkdir -p .cargo - cat >.cargo/config <>.cargo/config <