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:
parent
ea6364ae02
commit
c01d43922f
36
circle.yml
Normal file
36
circle.yml
Normal 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"
|
|
@ -891,7 +891,9 @@ then
|
||||||
|
|
||||||
wget https://github.com/TokTok/c-toxcore/releases/download/v$TOXCORE_VERSION/c-toxcore-$TOXCORE_VERSION.tar.gz
|
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"
|
check_sha256 "$TOXCORE_HASH" "c-toxcore-$TOXCORE_VERSION.tar.gz"
|
||||||
|
set +euo pipefail
|
||||||
bsdtar -xf c-toxcore*.tar.gz
|
bsdtar -xf c-toxcore*.tar.gz
|
||||||
|
set -euo pipefail
|
||||||
rm c-toxcore*.tar.gz
|
rm c-toxcore*.tar.gz
|
||||||
cd c-toxcore*
|
cd c-toxcore*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user