language: rust
rust:
- stable
cache:
- apt
- cargo
matrix:
include:
- env:
- NAME=fwloki
- TARGET=arm-unknown-linux-gnueabihf
- CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
- PACKAGE=$NAME-arm.tar.gz
addons:
apt:
packages: &1
- gcc-arm-linux-gnueabihf
- libc6-armhf-cross
- libc6-dev-armhf-cross
- env:
- NAME=fwloki
- TARGET=mips64-unknown-linux-gnuabi64
- CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_LINKER=mips64-linux-gnuabi64-gcc
addons:
apt:
packages: &1
- gcc-mips64-linux-gnuabi64
- libc6-mips64-cross
- libc6-dev-mips64-cross
- env:
- NAME=fwloki
- TARGET=armv7-unknown-linux-gnueabihf
- CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
- PACKAGE=$NAME-armv7.tar.gz
addons:
apt:
packages: *1
- env:
- NAME=fwloki
- TARGET=i686-unknown-linux-gnu
- PACKAGE=$NAME-i686.tar.gz
addons:
apt:
packages:
- gcc-multilib
- env:
- NAME=fwloki
- TARGET=x86_64-unknown-linux-gnu
- PACKAGE=$NAME-x86_64.tar.gz
install:
- export PATH="$PATH:$HOME/.cargo/bin"
- rustup target add $TARGET || true
script:
- |
if [ $TARGET = "x86_64-unknown-linux-gnu" ]; then
cargo test
fi
- cargo build --target $TARGET --verbose --release
before_deploy:
- tar -czf $PACKAGE -C target/$TARGET/release/ $NAME
deploy:
provider: releases
api_key:
secure: SKJzyXbIIoWpZyYu+6PvjwG6polRvANisqI4cS5ofSdcBsm13RdHZ+mMKjredR7d7VfHDePuVWNd5pzZIFG9i4wczqegGJ62ZbpZoB3VB3yahplgY0bYJGd12I7Vii2hu+3zfzjb/KrLOPK0tVhCPYj60A40RjwabzRE6kHAnttx4OjtF4N+DeBf75NJdiyoCOMfTabsgRqZwFD/wbM86MQKQ7nk6/NFr35MdBYm8tdXE5MZElVMe/TZrICRXNQD63yZyuXKQUOul9lWeWl5sbNdJRGe4A69WmqayW4A0rVE2AkqTLZcu/U2iVTwmVWSfO3GQx3iYxwd7TK2NWBB2i/nb69MpQaQwr0f6fvRzvDbIbiuDR96YF56WpYSTsK2KLGBTjViz7CKCnRyi3hfFaGSAmBOfKVCwUnpLsxpOwmcFkjNCdEfQPB0Y/GBaoYfjY/Jq7pvLQXMvMW5kk/pX6xXiDbKjnLsD9KAhcTccMqRBDawRc5HGuF5gZxiqWwtrzT5B29YQDd/T8+DoHmRrUTsQ6NlXqTk5+DsMg3cpv9bC258Yw9lfcN00VZaIggy2t6RHAJXu3FnyLEi8ld5YzhkRqrATGBxQTbcOn0YVAJFEGOn488kJ6pU6w97huq2/cHMv9V89K6W0CTNtYltocJqRKvfSFfciZf0PYiOxLs=
file: "${PACKAGE}"
skip_cleanup: true
on:
tags: true
repo: w4/fwloki