From c01d43922ff3f617788323c157441e712f979971 Mon Sep 17 00:00:00 2001 From: Zoff Date: Mon, 13 Nov 2017 19:32:04 +0300 Subject: [PATCH] chore(CI): Add windows build with CircleCI --- circle.yml | 36 ++++++++++++++++++++++++++++++++++ windows/cross-compile/build.sh | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 000000000..48a92deb1 --- /dev/null +++ b/circle.yml @@ -0,0 +1,36 @@ +machine: + services: + - docker + timezone: + Europe/Berlin + environment: + MAKEFLAGS: "j4" + BUILD__: "x86_64" + BTYPE__: "release" +dependencies: + pre: + - sudo apt-get update + - sudo apt-get install zip + - docker info +compile: + override: + - mkdir -p ~/workspace + - mkdir -p ~/script + - cp -av ./windows/cross-compile/build.sh ~/script/ + + - docker run --rm + -v /home/ubuntu/workspace:/workspace + -v /home/ubuntu/script:/script + -v /home/ubuntu/qTox:/qtox + debian:stretch-slim + /bin/bash /script/build.sh "$BUILD__" "$BTYPE__" + + - ls -al /home/ubuntu/workspace/"$BUILD__"/qtox/"$BTYPE__"/ + - ls -al /home/ubuntu/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe + + - mkdir -p $CIRCLE_ARTIFACTS/"$BUILD__"/ + - cp -av /home/ubuntu/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe $CIRCLE_ARTIFACTS/"$BUILD__"/qtox_"$BTYPE__".exe + - cd /home/ubuntu/workspace/"$BUILD__"/qtox/"$BTYPE__"/ ; zip -r $CIRCLE_ARTIFACTS/"$BUILD__"/qtox_"$BUILD__"_"$BTYPE__".zip * +test: + override: + - echo "no tests yet" diff --git a/windows/cross-compile/build.sh b/windows/cross-compile/build.sh index a26398b08..5c3a41957 100644 --- a/windows/cross-compile/build.sh +++ b/windows/cross-compile/build.sh @@ -891,7 +891,9 @@ then wget https://github.com/TokTok/c-toxcore/releases/download/v$TOXCORE_VERSION/c-toxcore-$TOXCORE_VERSION.tar.gz check_sha256 "$TOXCORE_HASH" "c-toxcore-$TOXCORE_VERSION.tar.gz" + set +euo pipefail bsdtar -xf c-toxcore*.tar.gz + set -euo pipefail rm c-toxcore*.tar.gz cd c-toxcore*