Merge pull request #990 from alexcrichton/sccache

Try to speed up CI with sccache
This commit is contained in:
Alex Crichton 2018-10-28 13:53:50 -07:00 committed by GitHub
commit 6d78c5304a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -13,6 +13,10 @@ install:
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -V
- cargo -V
- appveyor-retry appveyor DownloadFile https://github.com/mozilla/sccache/releases/download/0.2.7/sccache-0.2.7-x86_64-pc-windows-msvc.tar.gz
- tar xzf sccache-0.2.7-x86_64-pc-windows-msvc.tar.gz
- set PATH=%PATH%;%CD%/sccache-0.2.7-x86_64-pc-windows-msvc
- set RUSTC_WRAPPER=sccache
build: false

View File

@ -41,6 +41,16 @@ INSTALL_AWS: &INSTALL_AWS
export PATH=$HOME/.local/bin:$PATH
mkdir -p ~/$TRAVIS_BUILD_NUMBER
before_install:
- target=x86_64-unknown-linux-musl
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then target=x86_64-apple-darwin; fi
- curl -L https://github.com/mozilla/sccache/releases/download/0.2.7/sccache-0.2.7-$target.tar.gz | tar xzf -
- export PATH=$PATH:`pwd`/sccache-0.2.7-$target
- export RUSTC_WRAPPER=sccache
after_script:
- sccache -s
matrix:
include:
# Tests for wasm-bindgen itself pass