Enable sccache in ARM

This commit is contained in:
Syrus Akbary 2020-03-30 20:41:12 -07:00 committed by GitHub
parent 0623fa0549
commit 3639ef6d24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,10 +11,11 @@ steps:
echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]$sccache" echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]$sccache"
displayName: Install sccache - Linux X64 displayName: Install sccache - Linux X64
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OSArchitecture'], 'X64')) condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OSArchitecture'], 'X64'))
# - bash: | - bash: |
# echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]sccache" command -v sccache > /dev/null || cargo install sccache
# displayName: Install sccache - Linux ARM echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]sccache"
# condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OSArchitecture'], 'ARM64')) displayName: Install sccache - Linux ARM
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OSArchitecture'], 'ARM64'))
- bash: | - bash: |
set -ex set -ex
brew install openssl@1.1 brew install openssl@1.1
@ -36,7 +37,7 @@ steps:
$RUSTC_WRAPPER -s $RUSTC_WRAPPER -s
cat sccache.log cat sccache.log
displayName: "start sccache" displayName: "start sccache"
condition: not(or(eq( variables['Agent.OS'], 'Windows_NT' ), eq(variables['Agent.OSArchitecture'], 'ARM64'))) condition: not(eq( variables['Agent.OS'], 'Windows_NT' ))
env: env:
SCCACHE_AZURE_CONNECTION_STRING: $(SCCACHE_AZURE_CONNECTION_STRING) SCCACHE_AZURE_CONNECTION_STRING: $(SCCACHE_AZURE_CONNECTION_STRING)
SCCACHE_AZURE_BLOB_CONTAINER: $(SCCACHE_AZURE_BLOB_CONTAINER) SCCACHE_AZURE_BLOB_CONTAINER: $(SCCACHE_AZURE_BLOB_CONTAINER)