Skip to content

Commit a8040bd

Browse files
committed
Check blobs in separate target
1 parent 9352831 commit a8040bd

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ matrix:
2020
rust: nightly
2121
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
2222

23+
- env: CHECK_BLOBS=1
24+
rust: stable
25+
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
26+
2327

2428
install:
2529
- ci/install.sh

ci/install.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
set -euxo pipefail
44

5-
rustup target add $TARGET
5+
if [ -n "${TARGET:-}" ]; then
6+
rustup target add $TARGET
7+
fi
68

7-
mkdir gcc
8-
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
9+
if [ -n "${CHECK_BLOBS:-}" ]; then
10+
mkdir gcc
11+
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
12+
fi

ci/script.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
set -euxo pipefail
44

5-
cargo check --target $TARGET
5+
if [ -n "${TARGET:-}" ]; then
6+
cargo check --target $TARGET
67

7-
if [ $TRAVIS_RUST_VERSION = nightly ]; then
8-
cargo check --target $TARGET --features inline-asm
8+
if [ $TRAVIS_RUST_VERSION = nightly ]; then
9+
cargo check --target $TARGET --features inline-asm
10+
fi
911
fi
1012

11-
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
13+
if [ -n "${CHECK_BLOBS:-}" ]; then
1214
./check-blobs.sh
1315
fi

0 commit comments

Comments
 (0)