File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -121,17 +121,25 @@ jobs:
121
121
key : ' "install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "tbb" | scripts/cache_exclude_windows.sh'
122
122
- task : Cache@2
123
123
inputs :
124
- path : C:\Windows\System32\ OpenCL.dll
125
- key : ' "install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "opencl " | scripts/cache_exclude_windows.sh'
124
+ path : opencl # caching of individual files is not supported, caching OpenCL.dll in a folder as a workaround.
125
+ key : ' "install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "opencl_folder " | scripts/cache_exclude_windows.sh'
126
126
cacheHitVar : CACHE_RESTORED
127
127
- script : scripts/install_windows.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_DPCPP_COMPONENTS)
128
128
displayName : install
129
129
condition : ne(variables.CACHE_RESTORED, 'true')
130
+ - bash : cp opencl/OpenCL.dll C:/Windows/System32/
131
+ displayName : restore OpenCL.dll from cache
132
+ condition : eq(variables.CACHE_RESTORED, 'true')
130
133
- script : scripts/build_windows.bat dpc++
131
134
displayName : build
132
135
- bash : scripts/cache_exclude_windows.sh
133
136
displayName : exclude unused files from cache
134
137
condition : ne(variables.CACHE_RESTORED, 'true')
138
+ - bash : |
139
+ mkdir -p opencl
140
+ cp C:/Windows/System32/OpenCL.dll opencl/
141
+ displayName: copy OpenCL.dll to a folder for caching
142
+ condition: ne(variables.CACHE_RESTORED, 'true')
135
143
136
144
# Delete the following if you don't want to save install logs
137
145
- task : CopyFiles@2
You can’t perform that action at this time.
0 commit comments