File tree Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_req
16
16
matrix :
17
17
allow_failures :
18
18
- 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
+
19
25
20
26
install :
21
27
- ci/install.sh
Original file line number Diff line number Diff line change 2
2
3
3
set -euxo pipefail
4
4
5
- if [ $ TARGET != x86_64-unknown-linux-gnu ]; then
5
+ if [ -n " ${ TARGET:- } " ]; then
6
6
rustup target add $TARGET
7
7
fi
8
8
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
Original file line number Diff line number Diff line change 2
2
3
3
set -euxo pipefail
4
4
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
9
11
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
12
15
fi
13
16
14
- if [ $TARGET = x86_64-unknown-linux-gnu ]; then
17
+ if [ -n " ${CHECK_BLOBS :- } " ]; then
15
18
PATH=" $PATH :$PWD /gcc/bin"
16
19
./check-blobs.sh
17
20
fi
You can’t perform that action at this time.
0 commit comments