Check blobs in separate target
This commit is contained in:
parent
9352831150
commit
a8040bd24b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue