Skip to content

Commit 698cb30

Browse files
committed
Enable gcc caching
1 parent 87453e6 commit 698cb30

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ matrix:
2121
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
2222

2323
- env: CHECK_BLOBS=1
24-
rust: stable
24+
rust:
25+
language: bash
2526
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
2627

2728

@@ -32,7 +33,10 @@ script:
3233
- ci/script.sh
3334

3435

35-
cache: cargo
36+
cache:
37+
cargo: true
38+
directories:
39+
- gcc
3640
before_cache:
3741
# Travis can't cache files that are not readable by "others"
3842
- chmod -R a+r $HOME/.cargo

ci/install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if [ -n "${TARGET:-}" ]; then
77
fi
88

99
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
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
1214
fi

0 commit comments

Comments
 (0)