Trying to improve local cache dir

This commit is contained in:
Syrus 2019-09-03 15:32:32 -07:00
parent d54712f73b
commit 1a35cdd4cd
2 changed files with 7 additions and 27 deletions

View File

@ -28,6 +28,7 @@ steps:
- bash: |
set -ex
env
mkdir -p $SCCACHE_DIR
SCCACHE_ERROR_LOG=`pwd`/sccache.log RUST_LOG=debug $RUSTC_WRAPPER --start-server
$RUSTC_WRAPPER -s
cat sccache.log
@ -35,3 +36,9 @@ steps:
env:
SCCACHE_AZURE_CONNECTION_STRING: $(SCCACHE_AZURE_CONNECTION_STRING)
SCCACHE_AZURE_BLOB_CONTAINER: $(SCCACHE_AZURE_BLOB_CONTAINER)
SCCACHE_DIR: $(Pipeline.Workspace)/.sccache
- task: CacheBeta@0
inputs:
key: sccache | $(Agent.OS) | Cargo.lock
path: $(Pipeline.Workspace)/.sccache
displayName: Cache Cargo Target

View File

@ -42,8 +42,6 @@ jobs:
rust_toolchain: stable
pool:
vmImage: $(imageName)
variables:
SCCACHE_DIR: $(Pipeline.Workspace)/.sccache
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
steps:
- checkout: self
@ -52,11 +50,6 @@ jobs:
- template: .azure/install-llvm.yml
- template: .azure/install-sccache.yml
- template: .azure/install-cmake.yml
- task: CacheBeta@0
inputs:
key: sccache | $(Agent.OS) | Cargo.lock
path: $(SCCACHE_DIR)
displayName: Cache Cargo Target
- bash: make test
displayName: Tests (*nix)
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
@ -69,7 +62,6 @@ jobs:
vmImage: "ubuntu-16.04"
variables:
rust_toolchain: nightly-2019-08-15
SCCACHE_DIR: $(Pipeline.Workspace)/.sccache
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
steps:
- checkout: self
@ -78,11 +70,6 @@ jobs:
- template: .azure/install-llvm.yml
- template: .azure/install-sccache.yml
- template: .azure/install-cmake.yml
- task: CacheBeta@0
inputs:
key: sccache | $(Agent.OS) | Cargo.lock
path: $(SCCACHE_DIR)
displayName: Cache Cargo Target
- bash: make check
displayName: Check with Flags
condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
@ -103,8 +90,6 @@ jobs:
# RUSTFLAGS: -Ctarget-feature=+crt-static
pool:
vmImage: $(imageName)
variables:
SCCACHE_DIR: $(Pipeline.Workspace)/.sccache
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
steps:
- checkout: self
@ -114,11 +99,6 @@ jobs:
- template: .azure/install-sccache.yml
- template: .azure/install-cmake.yml
- template: .azure/install-innosetup.yml
- task: CacheBeta@0
inputs:
key: sccache | $(Agent.OS) | Cargo.lock
path: $(SCCACHE_DIR)
displayName: Cache Cargo Target
- bash: |
mkdir -p artifacts
displayName: Create Artifacts Dir
@ -173,8 +153,6 @@ jobs:
# RUSTFLAGS: -Ctarget-feature=+crt-static
pool:
vmImage: $(imageName)
variables:
SCCACHE_DIR: $(Pipeline.Workspace)/.sccache
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
steps:
- checkout: self
@ -183,11 +161,6 @@ jobs:
# - template: .azure/install-llvm.yml
- template: .azure/install-sccache.yml
- template: .azure/install-cmake.yml
- task: CacheBeta@0
inputs:
key: sccache | $(Agent.OS) | Cargo.lock
path: $(SCCACHE_DIR)
displayName: Cache Cargo Target
- bash: |
mkdir -p artifacts
displayName: Create Artifacts Dir