Skip to content

Commit 4ea6ec4

Browse files
committed
Check blobs in a separate target
1 parent 9c492da commit 4ea6ec4

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

riscv-rt/.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_req
1616
matrix:
1717
allow_failures:
1818
- rust: nightly
19+
include:
20+
- env: CHECK_BLOBS=1
21+
rust:
22+
language: bash
23+
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
24+
1925

2026
install:
2127
- ci/install.sh

riscv-rt/ci/install.sh

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

33
set -euxo pipefail
44

5-
if [ $TARGET != x86_64-unknown-linux-gnu ]; then
5+
if [ -n "${TARGET:-}" ]; then
66
rustup target add $TARGET
77
fi
88

9-
mkdir gcc
10-
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+
if [ ! -d gcc/bin ]; then
11+
mkdir gcc
12+
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
13+
fi
14+
fi

riscv-rt/ci/script.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22

33
set -euxo pipefail
44

5-
cargo check --target $TARGET
6-
if [[ $TARGET == riscv* ]]; then
7-
cargo check --target $TARGET --examples
8-
fi
5+
if [ -n "${TARGET:-}" ]; then
6+
cargo check --target $TARGET
7+
8+
if [[ $TARGET == riscv* ]]; then
9+
cargo check --target $TARGET --examples
10+
fi
911

10-
if [ $TRAVIS_RUST_VERSION = nightly ]; then
11-
cargo check --target $TARGET --features 'inline-asm'
12+
if [ $TRAVIS_RUST_VERSION = nightly ]; then
13+
cargo check --target $TARGET --features inline-asm
14+
fi
1215
fi
1316

14-
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
17+
if [ -n "${CHECK_BLOBS:-}" ]; then
1518
PATH="$PATH:$PWD/gcc/bin"
1619
./check-blobs.sh
1720
fi

0 commit comments

Comments
 (0)