Skip to content

Commit 2bf617c

Browse files
committed
Fixing azure failure in case of incomplete cache
1 parent acf6c71 commit 2bf617c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,15 @@ jobs:
125125
inputs:
126126
path: C:\Program Files (x86)\Intel\oneAPI\compiler
127127
key: '"install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh'
128+
cacheHitVar: CACHE_RESTORED
128129
- task: Cache@2
130+
condition: eq(variables.CACHE_RESTORED, 'true')
129131
inputs:
130132
path: C:\Program Files (x86)\Intel\oneAPI\tbb
131133
key: '"install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "tbb" | scripts/cache_exclude_windows.sh'
134+
cacheHitVar: CACHE_RESTORED
132135
- task: Cache@2
136+
condition: eq(variables.CACHE_RESTORED, 'true')
133137
inputs:
134138
path: opencl # caching of individual files is not supported, caching OpenCL.dll in a folder as a workaround.
135139
key: '"install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "opencl_folder" | scripts/cache_exclude_windows.sh'

0 commit comments

Comments
 (0)