forked from oneapi-src/oneapi-ci
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.azure-pipelines.yml
469 lines (447 loc) · 18.4 KB
/
.azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
# SPDX-FileCopyrightText: 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
trigger:
- master
variables:
- name: WINDOWS_BASEKIT_URL
value: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/f96c71db-2c6c-45d9-8c1f-0348ef5885cf/w_BaseKit_p_2023.2.0.49396_offline.exe
- name: WINDOWS_HPCKIT_URL
value: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/438527fc-7140-422c-a851-389f2791816b/w_HPCKit_p_2023.2.0.49441_offline.exe
- name: LINUX_BASEKIT_URL
value: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/992857b9-624c-45de-9701-f6445d845359/l_BaseKit_p_2023.2.0.49397_offline.sh
- name: LINUX_HPCKIT_URL
value: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0722521a-34b5-4c41-af3f-d5d14e88248d/l_HPCKit_p_2023.2.0.49440_offline.sh
- name: MACOS_HPCKIT_URL
value: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/edb4dc2f-266f-47f2-8d56-21bc7764e119/m_HPCKit_p_2023.2.0.49443_offline.dmg
- name: WINDOWS_CPP_COMPONENTS
value: intel.oneapi.win.cpp-compiler
- name: WINDOWS_FORTRAN_COMPONENTS
value: intel.oneapi.win.ifort-compiler
- name: WINDOWS_DPCPP_COMPONENTS
value: intel.oneapi.win.dpcpp-compiler
- name: LINUX_CPP_COMPONENTS
value: intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
- name: LINUX_FORTRAN_COMPONENTS
value: intel-oneapi-compiler-fortran
- name: LINUX_DPCPP_COMPONENTS
value: intel-oneapi-compiler-dpcpp-cpp
- name: LINUX_CPP_COMPONENTS_WEB
value: intel.oneapi.lin.dpcpp-cpp-compiler-pro
- name: LINUX_FORTRAN_COMPONENTS_WEB
value: intel.oneapi.lin.ifort-compiler
- name: LINUX_DPCPP_COMPONENTS_WEB
value: intel.oneapi.lin.dpcpp-cpp-compiler
- name: MACOS_CPP_COMPONENTS
value: intel.oneapi.mac.cpp-compiler
- name: MACOS_FORTRAN_COMPONENTS
value: intel.oneapi.mac.ifort-compiler
- name: SAMPLES_TAG
value: 2023.2.0
- name: COMPILER_VERSION
value: 2023.2.0
- name: TBB_VERSION
value: 2021.10.0
- name: VS_VER
value: vs2022
resources:
containers:
- container: oneapi-hpckit
image: intel/oneapi-hpckit:latest
options: '-v /usr/bin/sudo:/usr/bin/sudo -v /usr/lib/sudo/libsudo_util.so.0:/usr/lib/sudo/libsudo_util.so.0 -v /usr/lib/sudo/sudoers.so:/usr/lib/sudo/sudoers.so'
- container: oneapi-basekit
image: intel/oneapi-basekit:latest
options: '-v /usr/bin/sudo:/usr/bin/sudo -v /usr/lib/sudo/libsudo_util.so.0:/usr/lib/sudo/libsudo_util.so.0 -v /usr/lib/sudo/sudoers.so:/usr/lib/sudo/sudoers.so'
jobs:
- job: build_windows_cpp
pool:
vmImage: 'windows-latest'
steps:
- task: Cache@2 # multiple paths per cache not supported yet. See https://github.com/microsoft/azure-pipelines-agent/pull/2834
inputs:
path: vcvarsall
key: '"install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_CPP_COMPONENTS)" | "vcvarsall" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- task: Cache@2
condition: eq(variables.CACHE_RESTORED, 'true')
inputs:
path: C:\Program Files (x86)\Intel\oneAPI\compiler
key: '"install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_CPP_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_windows.bat $(WINDOWS_HPCKIT_URL) $(WINDOWS_CPP_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- bash: cp vcvarsall/setvars-vcvarsall.bat "C:/Program Files (x86)/Intel/oneAPI/"
displayName: restore setvars-vcvarsall.bat from cache
condition: eq(variables.CACHE_RESTORED, 'true')
- script: scripts/build_windows.bat c++ $(VS_VER) $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_windows.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
- bash: |
mkdir -p vcvarsall
cp "C:/Program Files (x86)/Intel/oneAPI/setvars-vcvarsall.bat" vcvarsall/
displayName: copy setvars-vcvarsall.bat to a folder for caching
condition: ne(variables.CACHE_RESTORED, 'true')
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
extract.log
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)
- job: build_windows_fortran
pool:
vmImage: 'windows-latest'
steps:
- task: Cache@2 # multiple paths per cache not supported yet. See https://github.com/microsoft/azure-pipelines-agent/pull/2834
inputs:
path: vcvarsall
key: '"install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_FORTRAN_COMPONENTS)" | "vcvarsall" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- task: Cache@2
condition: eq(variables.CACHE_RESTORED, 'true')
inputs:
path: C:\Program Files (x86)\Intel\oneAPI\compiler
key: '"install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_FORTRAN_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_windows.bat $(WINDOWS_HPCKIT_URL) $(WINDOWS_FORTRAN_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- bash: cp vcvarsall/setvars-vcvarsall.bat "C:/Program Files (x86)/Intel/oneAPI/"
displayName: restore setvars-vcvarsall.bat from cache
condition: eq(variables.CACHE_RESTORED, 'true')
- script: scripts/build_windows.bat fortran $(VS_VER) $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_windows.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
- bash: |
mkdir -p vcvarsall
cp "C:/Program Files (x86)/Intel/oneAPI/setvars-vcvarsall.bat" vcvarsall/
displayName: copy setvars-vcvarsall.bat to a folder for caching
condition: ne(variables.CACHE_RESTORED, 'true')
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
extract.log
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)
- job: build_windows_dpcpp
pool:
vmImage: 'windows-latest'
steps:
- task: Cache@2 # multiple paths per cache not supported yet. See https://github.com/microsoft/azure-pipelines-agent/pull/2834
inputs:
path: vcvarsall
key: '"install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "vcvarsall" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- task: Cache@2
condition: eq(variables.CACHE_RESTORED, 'true')
inputs:
path: C:\Program Files (x86)\Intel\oneAPI\compiler
key: '"install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- task: Cache@2
condition: eq(variables.CACHE_RESTORED, 'true')
inputs:
path: C:\Program Files (x86)\Intel\oneAPI\tbb
key: '"install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "tbb" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- task: Cache@2
condition: eq(variables.CACHE_RESTORED, 'true')
inputs:
path: opencl # caching of individual files is not supported, caching OpenCL.dll in a folder as a workaround.
key: '"install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "opencl_folder" | scripts/cache_exclude_windows.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_windows.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_DPCPP_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/restore_registry.bat $(COMPILER_VERSION) $(TBB_VERSION)
displayName: restory registry on cache hit
condition: eq(variables.CACHE_RESTORED, 'true')
- bash: cp vcvarsall/setvars-vcvarsall.bat "C:/Program Files (x86)/Intel/oneAPI/"
displayName: restore setvars-vcvarsall.bat from cache
condition: eq(variables.CACHE_RESTORED, 'true')
- bash: cp opencl/OpenCL.dll C:/Windows/System32/
displayName: restore OpenCL.dll from cache
condition: eq(variables.CACHE_RESTORED, 'true')
- script: scripts/build_windows.bat dpc++ $(VS_VER) $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_windows.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
- bash: |
mkdir -p vcvarsall
cp "C:/Program Files (x86)/Intel/oneAPI/setvars-vcvarsall.bat" vcvarsall/
displayName: copy setvars-vcvarsall.bat to a folder for caching
condition: ne(variables.CACHE_RESTORED, 'true')
- bash: |
mkdir -p opencl
cp C:/Windows/System32/OpenCL.dll opencl/
displayName: copy OpenCL.dll to a folder for caching
condition: ne(variables.CACHE_RESTORED, 'true')
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
extract.log
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)
- job: build_linux_cpp
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: Cache@2
inputs:
path: /opt/intel/oneapi/compiler
key: '"install" | "$(LINUX_HPCKIT_URL)" | "$(LINUX_CPP_COMPONENTS_WEB)" | "compiler" | scripts/cache_exclude_linux.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_linux.sh $(LINUX_HPCKIT_URL) $(LINUX_CPP_COMPONENTS_WEB)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_linux.sh c++ $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_linux.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
extract.log
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)
- job: build_linux_fortran
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: Cache@2
inputs:
path: /opt/intel/oneapi/compiler
key: '"install" | "$(LINUX_HPCKIT_URL)" | "$(LINUX_FORTRAN_COMPONENTS_WEB)" | "compiler" | scripts/cache_exclude_linux.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_linux.sh $(LINUX_HPCKIT_URL) $(LINUX_FORTRAN_COMPONENTS_WEB)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_linux.sh fortran $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_linux.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
extract.log
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)
- job: build_linux_dpcpp
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: Cache@2
inputs:
path: /opt/intel/oneapi/compiler
key: '"install" | "$(LINUX_BASEKIT_URL)" | "$(LINUX_DPCPP_COMPONENTS_WEB)" | "compiler" | scripts/cache_exclude_linux.sh'
- task: Cache@2
inputs:
path: /opt/intel/oneapi/tbb
key: '"install" | "$(LINUX_BASEKIT_URL)" | "$(LINUX_DPCPP_COMPONENTS_WEB)" | "tbb" | scripts/cache_exclude_linux.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_linux.sh $(LINUX_BASEKIT_URL) $(LINUX_DPCPP_COMPONENTS_WEB)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_linux.sh dpc++ $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_linux.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
extract.log
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)
- job: build_linux_apt_cpp
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: scripts/setup_apt_repo_linux.sh
displayName: setup apt repo
- script: scripts/apt_depends.sh $LINUX_CPP_COMPONENTS | tee depends.txt
displayName: collect versioned dependencies of apt packages
- task: Cache@2
inputs:
path: /opt/intel/oneapi/compiler
key: '"install" | "$(LINUX_CPP_COMPONENTS)" | depends.txt | "compiler" | scripts/cache_exclude_linux.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_linux_apt.sh $(LINUX_CPP_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_linux.sh c++ $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_linux.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
- job: build_linux_apt_fortran
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: scripts/setup_apt_repo_linux.sh
displayName: setup apt repo
- script: scripts/apt_depends.sh $LINUX_CPP_COMPONENTS | tee depends.txt
displayName: collect versioned dependencies of apt packages
- task: Cache@2
inputs:
path: /opt/intel/oneapi/compiler
key: '"install" | "$(LINUX_FORTRAN_COMPONENTS)" | depends.txt | "compiler" | scripts/cache_exclude_linux.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_linux_apt.sh $(LINUX_FORTRAN_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_linux.sh fortran $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_linux.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
- job: build_linux_apt_dpcpp
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: scripts/setup_apt_repo_linux.sh
displayName: setup apt repo
- script: scripts/apt_depends.sh $LINUX_CPP_COMPONENTS | tee depends.txt
displayName: collect versioned dependencies of apt packages
- task: Cache@2
inputs:
path: /opt/intel/oneapi/compiler
key: '"install" | "$(LINUX_DPCPP_COMPONENTS)" | depends.txt | "compiler" | scripts/cache_exclude_linux.sh'
- task: Cache@2
inputs:
path: /opt/intel/oneapi/tbb
key: '"install" | "$(LINUX_DPCPP_COMPONENTS)" | depends.txt | "tbb" | scripts/cache_exclude_linux.sh'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_linux_apt.sh $(LINUX_DPCPP_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_linux.sh dpc++ $(SAMPLES_TAG)
displayName: build
- bash: scripts/cache_exclude_linux.sh
displayName: exclude unused files from cache
condition: ne(variables.CACHE_RESTORED, 'true')
- job: build_macOS_cpp
pool:
vmImage: 'macOS-latest'
steps:
- script: |
sudo mkdir -p /opt/intel
sudo chown $USER /opt/intel
displayName: prepare for cache restore
- task: Cache@2
inputs:
path: /opt/intel/oneapi
key: '"install" | "$(MACOS_HPCKIT_URL)" | "$(MACOS_CPP_COMPONENTS)"'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_macos.sh $(MACOS_HPCKIT_URL) $(MACOS_CPP_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_macos.sh c++ $(SAMPLES_TAG)
displayName: build
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)
- job: build_macOS_fortran
pool:
vmImage: 'macOS-latest'
steps:
- script: |
sudo mkdir -p /opt/intel
sudo chown $USER /opt/intel
displayName: prepare for cache restore
- task: Cache@2
inputs:
path: /opt/intel/oneapi
key: '"install" | "$(MACOS_HPCKIT_URL)" | "$(MACOS_FORTRAN_COMPONENTS)"'
cacheHitVar: CACHE_RESTORED
- script: scripts/install_macos.sh $(MACOS_HPCKIT_URL) $(MACOS_FORTRAN_COMPONENTS)
displayName: install
condition: ne(variables.CACHE_RESTORED, 'true')
- script: scripts/build_macos.sh fortran $(SAMPLES_TAG)
displayName: build
# Delete the following if you don't want to save install logs
- task: CopyFiles@2
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
bootstrapper*
installer*
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
condition: ne(variables.CACHE_RESTORED, 'true')
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: InstallLogs_$(Agent.JobName)