642e8d4434
There is known issue where PowerShell is unreasonably slow downloading files due to an issue with rendering the progress bar, see: https://github.com/PowerShell/PowerShell/issues/2138 That issue is fixed in PowerShell Core (available in Azure Pipelines as pwsh.exe) but it can also be worked around by setting: $ProgressPreference = 'SilentlyContinue'
22 lines
960 B
YAML
22 lines
960 B
YAML
steps:
|
|
|
|
- bash: |
|
|
set -e
|
|
curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin
|
|
chmod +x /usr/local/bin/sccache
|
|
displayName: Install sccache (OSX)
|
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
|
|
|
|
- script: |
|
|
md sccache
|
|
powershell -Command "$ProgressPreference = 'SilentlyContinue'; iwr -outf sccache\sccache.exe https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-26-sccache-x86_64-pc-windows-msvc"
|
|
echo ##vso[task.prependpath]%CD%\sccache
|
|
displayName: Install sccache (Windows)
|
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
|
|
|
# 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.
|