1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(CI): Add windows build with CircleCI

This commit is contained in:
Zoff 2017-11-13 19:32:04 +03:00 committed by sudden6
parent ea6364ae02
commit c01d43922f
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
2 changed files with 38 additions and 0 deletions

36
circle.yml Normal file
View File

@ -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"

View File

@ -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*