From 7fc8ac84a80b2ae90dda44b986ec320ef67004d2 Mon Sep 17 00:00:00 2001 From: Syrus Date: Tue, 3 Sep 2019 14:55:26 -0700 Subject: [PATCH] Add sccache directory cache just in case --- azure-pipelines.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c4c751393..a8df51c94 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,6 +42,8 @@ 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 @@ -50,6 +52,11 @@ 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'))) @@ -63,6 +70,8 @@ jobs: variables: rust_toolchain: nightly-2019-08-15 condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying') + variables: + SCCACHE_DIR: $(Pipeline.Workspace)/.sccache steps: - checkout: self submodules: true @@ -70,6 +79,11 @@ 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'))) @@ -90,6 +104,8 @@ 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 @@ -99,6 +115,11 @@ 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 @@ -153,6 +174,8 @@ 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 @@ -161,6 +184,11 @@ 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