Work CI-CD
Fix issue with cache key for LLVM.
steps:
- task: Cache@2
- condition: eq(variables.LLVM_Version, '')
+ condition: eq(variables['Build.Reason'], 'PullRequest')
displayName: Cache LLVM
inputs:
key: 'llvm_12_0_0_0 | llvmUpdateKey'
@@ -13,7 +13,7 @@ steps:
- task: PowerShell@2
displayName: Downloading LLVM 12.0
- condition: and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables.GCC_CACHE_RESTORED, 'true'))
+ condition: and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables.LLVM_CACHE_RESTORED, 'true'))
inputs:
targetType: 'inline'
script: |
@@ -25,7 +25,7 @@ steps:
- task: ExtractFiles@1
displayName: Install LLVM 12
- condition: and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables.GCC_CACHE_RESTORED, 'true'))
+ condition: and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables.LLVM_CACHE_RESTORED, 'true'))
inputs:
archiveFilePatterns: '$(Agent.TempDirectory)\LLVM-12.0.0-win64.exe'
destinationFolder: '$(Agent.TempDirectory)\llvm'
