Enable gcc caching

This commit is contained in:
Vadim Kaushan 2019-03-17 16:57:16 +03:00
parent 87453e6b0a
commit 698cb306ea
No known key found for this signature in database
GPG Key ID: A501C5DF67C05C4E
2 changed files with 10 additions and 4 deletions

View File

@ -21,7 +21,8 @@ matrix:
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
- env: CHECK_BLOBS=1
rust: stable
rust:
language: bash
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
@ -32,7 +33,10 @@ script:
- ci/script.sh
cache: cargo
cache:
cargo: true
directories:
- gcc
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo

View File

@ -7,6 +7,8 @@ if [ -n "${TARGET:-}" ]; then
fi
if [ -n "${CHECK_BLOBS:-}" ]; then
mkdir gcc
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
if [ ! -d gcc/bin ]; then
mkdir -p gcc
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
fi
fi