Enable gcc caching
This commit is contained in:
parent
87453e6b0a
commit
698cb306ea
@ -21,7 +21,8 @@ matrix:
|
|||||||
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
|
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
|
||||||
|
|
||||||
- env: CHECK_BLOBS=1
|
- 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)
|
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
|
||||||
|
|
||||||
|
|
||||||
@ -32,7 +33,10 @@ script:
|
|||||||
- ci/script.sh
|
- ci/script.sh
|
||||||
|
|
||||||
|
|
||||||
cache: cargo
|
cache:
|
||||||
|
cargo: true
|
||||||
|
directories:
|
||||||
|
- gcc
|
||||||
before_cache:
|
before_cache:
|
||||||
# Travis can't cache files that are not readable by "others"
|
# Travis can't cache files that are not readable by "others"
|
||||||
- chmod -R a+r $HOME/.cargo
|
- chmod -R a+r $HOME/.cargo
|
||||||
|
@ -7,6 +7,8 @@ if [ -n "${TARGET:-}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${CHECK_BLOBS:-}" ]; then
|
if [ -n "${CHECK_BLOBS:-}" ]; then
|
||||||
mkdir gcc
|
if [ ! -d gcc/bin ]; then
|
||||||
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
|
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
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user