2019-05-20 14:21:14 -05:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- bash: |
|
|
|
|
set -e
|
2019-05-28 15:20:43 -05:00
|
|
|
curl -fo /usr/local/bin/sccache https://rust-lang-ci2.s3.amazonaws.com/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin
|
2019-05-20 14:21:14 -05:00
|
|
|
chmod +x /usr/local/bin/sccache
|
|
|
|
displayName: Install sccache (OSX)
|
2019-05-20 16:21:12 -05:00
|
|
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
|
2019-05-20 14:21:14 -05:00
|
|
|
|
|
|
|
- script: |
|
|
|
|
md sccache
|
2019-05-30 13:00:21 -05:00
|
|
|
powershell -Command "$ProgressPreference = 'SilentlyContinue'; iwr -outf sccache\sccache.exe https://rust-lang-ci2.s3.amazonaws.com/rust-ci-mirror/2018-04-26-sccache-x86_64-pc-windows-msvc"
|
2019-05-20 14:21:14 -05:00
|
|
|
echo ##vso[task.prependpath]%CD%\sccache
|
|
|
|
displayName: Install sccache (Windows)
|
2019-05-20 16:21:12 -05:00
|
|
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
2019-05-20 14:21:14 -05:00
|
|
|
|
|
|
|
# Note that we don't install sccache on Linux since it's installed elsewhere
|
|
|
|
# through all the containers.
|
|
|
|
#
|
|
|
|
# FIXME: we should probably install sccache outside the containers and then
|
|
|
|
# mount it inside the containers so we can centralize all installation here.
|