[CI] Fix the windows tests in the unified pipeline. (#17934)

This commit is contained in:
Manuel de la Pena 2023-03-30 22:04:06 -04:00 коммит произвёл GitHub
Родитель 6dcb8e3b02
Коммит 879d2b5e05
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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