File tree Expand file tree Collapse file tree 3 files changed +36
-24
lines changed Expand file tree Collapse file tree 3 files changed +36
-24
lines changed Original file line number Diff line number Diff line change 13
13
14
14
if : (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
15
15
16
- before_install : set -e
16
+ matrix :
17
+ allow_failures :
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
+
17
25
18
26
install :
19
- - bash ci/install.sh
20
- - export PATH="$PATH:$PWD/gcc/bin"
27
+ - ci/install.sh
21
28
22
29
script :
23
- - bash ci/script.sh
24
-
25
- after_script : set +e
30
+ - ci/script.sh
26
31
27
- cache : cargo
32
+ cache :
33
+ cargo : true
34
+ directories :
35
+ - gcc
28
36
29
37
branches :
30
38
only :
Original file line number Diff line number Diff line change 1
- set -euxo pipefail
1
+ #! /usr/bin/env bash
2
2
3
- main () {
4
- if [ $TARGET != x86_64-unknown-linux-gnu ]; then
5
- rustup target add $TARGET
6
- fi
3
+ set -euxo pipefail
7
4
8
- mkdir gcc
9
- 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
10
- }
5
+ if [ -n " ${TARGET :- } " ] ; then
6
+ rustup target add $TARGET
7
+ fi
11
8
12
- main
9
+ if [ -n " ${CHECK_BLOBS:- } " ]; then
10
+ if [ ! -d gcc/bin ]; then
11
+ mkdir -p 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
1
+ #! /usr/bin/env bash
2
+
1
3
set -euxo pipefail
2
4
3
- main () {
5
+ if [ -n " ${TARGET :- } " ] ; then
4
6
cargo check --target $TARGET
7
+
5
8
if [[ $TARGET == riscv* ]]; then
6
9
cargo check --target $TARGET --examples
7
10
fi
8
11
9
12
if [ $TRAVIS_RUST_VERSION = nightly ]; then
10
- cargo check --target $TARGET --features ' inline-asm'
11
- fi
12
-
13
- if [ $TARGET = x86_64-unknown-linux-gnu ]; then
14
- ./check-blobs.sh
13
+ cargo check --target $TARGET --features inline-asm
15
14
fi
16
- }
15
+ fi
17
16
18
- main
17
+ if [ -n " ${CHECK_BLOBS:- } " ]; then
18
+ PATH=" $PATH :$PWD /gcc/bin"
19
+ ./check-blobs.sh
20
+ fi
You can’t perform that action at this time.
0 commit comments