-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
71 lines (61 loc) · 2.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: rust
#
# Only build tags
if: tag IS present
rust:
- nightly
cache:
apt: true
directories:
- ./compile/libraries/
matrix:
include:
-
env: NAME=hex TARGET=arm-unknown-linux-gnueabihf LINKER=arm-linux-gnueabihf-gcc HOST=arm-linux-gnueabihf SSL_HOST=linux-armv4 PACKAGE=$NAME-arm-linux.tar.gz
addons:
apt:
packages:
- gcc-arm-linux-gnueabihf
- libc6-armhf-cross
- libc6-dev-armhf-cross
- env: NAME=hex TARGET=armv7-unknown-linux-gnueabihf LINKER=arm-linux-gnueabihf-gcc HOST=arm-linux-gnueabihf SSL_HOST=linux-armv4 PACKAGE=$NAME-armv7-linux.tar.gz
addons:
apt:
packages:
- gcc-arm-linux-gnueabihf
- libc6-armhf-cross
- libc6-dev-armhf-cross
- env: NAME=hex TARGET=x86_64-unknown-linux-gnu HOST=x86_64-pc-linux-gnu SSL_HOST=linux-x86_64 PACKAGE=$NAME-x86_64-linux-gnu.tar.gz
addons:
apt:
packages:
- gcc
#- env:
# - NAME=hex
# - TARGET=x86_64-unknown-linux-gnu
# - PACKAGE=$NAME-x86_64.tar.gz
install:
- export PATH="$PATH:$HOME/.cargo/bin"
- rustup target add $TARGET || true
- |
if [ -n "$LINKER" ]; then
mkdir -p ~/.cargo
echo >> ~/.cargo/config
echo "[target.$TARGET]" >> ~/.cargo/config
echo "linker = \"$LINKER\"" >> ~/.cargo/config
fi
before_install:
- ./compile/compile_libraries.sh
script:
- ./compile/compile.sh
before_deploy:
- tar -czf $PACKAGE -C target/$TARGET/release/ hex-cli hex-zyklop hex-web hex-telegram
deploy:
provider: releases
api_key:
secure: fOg8sbu5scUE/A5bxkbeNE/1HNRKHxJRSQF2ZqXEO6I4Zquzjtijyod8cIXnjuHMhzjHvhSGWW99VE7Ypa2P7kDVol0AoqQdKUaFiBXlPmtxBFtlJnMDQi1uuTdC4cA3k7H3p15Bk/yZQIlcirBO0jcajo049Ki3Vnwvol1tYBhzoHkzYhN507kQ65k+iOhRGNlIj1I9K4twFO292mKkF0ZVGqgDMDege/KhyVET+pxEFUVJVbumLNUF7Kdfs3ogfRo/IIhv0lZv7k5k35I1K1qJBofHfSlL7FMXYQHAPh/IGEW++nUEzu5c5J3Vv0Lrci6AOLLBD2UTGTmr3s4vcZn004ebvdd+8gDi1NZITsAKi6t8Fb7/hBubgEy1O2bi54bfyWhSurVAsXmJqkfAaqCpq8P4ddvsDZRlVAD67INcWPjAeKggtvWtA6DXDIsxnFxTBg0NOvVKMHXdJoE5+M9iU85YJQKoXJSAn74nFq5D9oGqZQn30thevpmIKCXyf5mVTZcCr5inDx5H6EGv6zMgllvs5T8lu7KweFXPoOuvQqbkf14foWScel8vk2Zc/yCP5g+FhJPeOjhZfqfgYlSxWdw+qZSOrhd8fhEf9xol/GXa8Ij2t96ehDpWoNinvGZt1pl4moROeCyUHsh5px+MfHRolKtXG0V1B0wsZJo=
file: ${PACKAGE}
skip_cleanup: true
on:
tags: true
repo: bytesnake/hex