Skip to content
Snippets Groups Projects
Commit dbfa199e authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

update CI stuff

parent 50804bef
No related branches found
No related tags found
No related merge requests found
dist: trusty
language: rust
services: docker
sudo: required
matrix:
include:
......@@ -9,12 +6,17 @@ matrix:
rust: nightly
- env: TARGET=thumbv7em-none-eabihf
rust: nightly
addons:
apt:
sources:
- debian-sid
packages:
- binutils-arm-none-eabi
before_install: set -e
install:
- sh ci/install.sh
- source ~/.cargo/env || true
- bash ci/install.sh
script:
- bash ci/script.sh
......
set -ex
set -euxo pipefail
main() {
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
| cut -d/ -f3 \
| grep -E '^v0.1.[0-9]+$' \
| sort --version-sort \
| tail -n1)
if [ $TARGET = thumbv7m-none-eabi ]; then
local vers=0.3.7
curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- \
--force \
--git japaric/cross \
--tag $tag \
--target x86_64-unknown-linux-musl
cargo install --list | grep "xargo v$vers" || \
( cd .. && cargo install xargo -f --vers $vers )
rustup component list | grep 'rust-src.*installed' || \
rustup component add rust-src
fi
}
main
set -ex
main() {
cross build --target $TARGET
cross build --target $TARGET --release
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
cargo build --target $TARGET
return
fi
xargo build --target $TARGET
xargo test --target $TARGET --examples
}
main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment