Check blobs in separate target

This commit is contained in:
Vadim Kaushan 2019-03-17 16:45:28 +03:00
parent 9352831150
commit a8040bd24b
No known key found for this signature in database
GPG Key ID: A501C5DF67C05C4E
3 changed files with 17 additions and 7 deletions

View File

@ -20,6 +20,10 @@ matrix:
rust: nightly
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
- env: CHECK_BLOBS=1
rust: stable
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
install:
- ci/install.sh

View File

@ -2,7 +2,11 @@
set -euxo pipefail
if [ -n "${TARGET:-}" ]; then
rustup target add $TARGET
fi
if [ -n "${CHECK_BLOBS:-}" ]; then
mkdir gcc
curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
fi

View File

@ -2,12 +2,14 @@
set -euxo pipefail
if [ -n "${TARGET:-}" ]; then
cargo check --target $TARGET
if [ $TRAVIS_RUST_VERSION = nightly ]; then
cargo check --target $TARGET --features inline-asm
fi
fi
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
if [ -n "${CHECK_BLOBS:-}" ]; then
./check-blobs.sh
fi