-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
88 lines (83 loc) · 3.44 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
dist: xenial
language: generic
matrix:
include:
- env:
- TARGET=arm-unknown-linux-gnueabi
- LINKER=arm-linux-gnueabi-gcc
- PACKAGE=unipager-arm.tar.gz
- PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig
- PKG_CONFIG_ALLOW_CROSS=1
addons:
apt:
packages:
- gcc-arm-linux-gnueabi
- libc6-armel-cross
- libc6-dev-armel-cross
- env:
- TARGET=arm-unknown-linux-gnueabihf
- LINKER=arm-linux-gnueabihf-gcc
- PACKAGE=unipager-rpi2.tar.gz
- PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig
- PKG_CONFIG_ALLOW_CROSS=1
addons:
apt:
packages: &armhf
- gcc-arm-linux-gnueabihf
- libc6-armhf-cross
- libc6-dev-armhf-cross
- env:
- TARGET=armv7-unknown-linux-gnueabihf
- LINKER=arm-linux-gnueabihf-gcc
- PACKAGE=unipager-rpi3.tar.gz
- PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig
- PKG_CONFIG_ALLOW_CROSS=1
addons:
apt:
packages: *armhf
- env:
- TARGET=i686-unknown-linux-gnu
- PACKAGE=unipager-i686.tar.gz
- PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu/pkgconfig
- PKG_CONFIG_ALLOW_CROSS=1
addons:
apt:
packages:
- gcc-multilib
- env:
- TARGET=x86_64-unknown-linux-gnu
- PACKAGE=unipager-x86_64.tar.gz
- PKG_CONFIG_LIBDIR=/usr/lib/x86_64-linux-gnu/pkgconfig
- PKG_CONFIG_ALLOW_CROSS=1
before_install:
- sudo dpkg --add-architecture i386
- sudo dpkg --add-architecture armhf
- sudo sed -i 's/^deb http/deb [arch=i386,amd64] http/' /etc/apt/sources.list
- sudo echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports xenial main universe restricted multiverse" >> /etc/apt/sources.list
- sudo echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports xenial-updates main universe restricted multiverse" >> /etc/apt/sources.list
- sudo apt-get update
- sudo apt-get -y install libudev-dev libudev-dev:armhf libudev-dev:i386 libusb-1.0-0-dev libusb-1.0-0-dev:armhf libusb-1.0-0-dev:i386
install:
- export PATH="$PATH:$HOME/.cargo/bin"
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=nightly
- 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
script:
- cargo build --target $TARGET --verbose --release
before_deploy:
- tar -czf $PACKAGE -C target/$TARGET/release/ unipager
deploy:
provider: releases
api_key:
secure: Y0E2keSR4wzpBssjfcUooBF7n6dEdD1HqGs6dFIqO/Z7c3fF97b7cbfXTlO4myZ8zDwSJcQ5uXgojmb7aDhwbY0quPdK69d5zHTC525WqAkOE9hvCbHIJ9bZ+dt7ZmdL7DsNif25c9lTUAu8UyWLZ5LjbSLIaA/oEp2FZ/G01w2gNMPKvlsrN5Rt5R8+ffBDgh5ggBArJIfEdQJnBIMBfS+OmXyr/xAAafAi2dnFUe8x1KyOMMNCgOXGqprxN5tk05HrDyTFzXpzDYGeswg4aSzROdQ8H8T/qnra9CBHbRo91Bh3kjUkmGhvsJTMouXL42rgXLMwRH5M40lKDgbxWvSN4YPFRuAduxrZGwrthqo1JclSAZfgqrYn0Xweutuj/jfBHbAwuV24F+idEL4aGL/vLshHKhVWwJeboYRfHqgS+Ktlx+IWNXSRqfn9PYfKLAkuTQJmOEvmjTWVYtUi+AhaPWU2MWrT9qzGsQwKoCd1yIMGBEk34KehsYdmfHLHrgL3BVzBjhd+KNZyJcppCXDk28h6ZFxD7VIPrk2ksJnheHytU+o3MfOUNtjtZKnToZKkQDiQegYZwOs3WXbKdPeFkfFYnX5gtkgKJrX0mLfzA52Day1ZQMAHbkkggmE7eCHfuFL9xwtIakiHAUWZMdJ0zlsLbGUWxiR7pVl6+pQ=
file: ${PACKAGE}
skip_cleanup: true
on:
tags: true
repo: rwth-afu/UniPager