[CI] Fix the windows tests in the unified pipeline. (#17934)
This commit is contained in:
Родитель
6dcb8e3b02
Коммит
879d2b5e05
|
@ -15,6 +15,10 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
default: HEAD
|
default: HEAD
|
||||||
|
|
||||||
|
- name: uploadPrefix
|
||||||
|
type: string
|
||||||
|
default: '$(MaciosUploadPrefix)'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- template: ../common/checkout.yml
|
- template: ../common/checkout.yml
|
||||||
|
@ -102,13 +106,13 @@ steps:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: Download test libraries dependencies
|
displayName: Download test libraries dependencies
|
||||||
inputs:
|
inputs:
|
||||||
patterns: '**/package-test-libraries.zip'
|
patterns: '**/${{ parameters.uploadPrefix }}package-test-libraries.zip'
|
||||||
allowFailedBuilds: true
|
allowFailedBuilds: true
|
||||||
path: $(Build.SourcesDirectory)/artifacts/tmp
|
path: $(Build.SourcesDirectory)/artifacts/tmp
|
||||||
|
|
||||||
# this step replaces the test-libraries dir
|
# this step replaces the test-libraries dir
|
||||||
- pwsh: |
|
- pwsh: |
|
||||||
$zip = "$(Build.SourcesDirectory)/artifacts/tmp/package-test-libraries/package-test-libraries.zip"
|
$zip = "$(Build.SourcesDirectory)/artifacts/tmp/${{ parameters.uploadPrefix }}package-test-libraries/package-test-libraries.zip"
|
||||||
$target = "$(Build.SourcesDirectory)/xamarin-macios/tests/test-libraries"
|
$target = "$(Build.SourcesDirectory)/xamarin-macios/tests/test-libraries"
|
||||||
Expand-Archive -Force $zip -DestinationPath $target
|
Expand-Archive -Force $zip -DestinationPath $target
|
||||||
Get-ChildItem "$target" -Recurse
|
Get-ChildItem "$target" -Recurse
|
||||||
|
|
Загрузка…
Ссылка в новой задаче