Skip to content

Commit

Permalink
copy some files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi Zhang committed Mar 22, 2024
1 parent 5511727 commit 205b2da
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tools/ci_build/github/azure-pipelines/templates/win-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,16 @@ stages:
workingDirectory: '$(Build.BinariesDirectory)'
- ${{ else }}:
- powershell: |
Get-ChildItem -Path "$(Build.BinariesDirectory)/RelWithDebInfo" -Directory | Where-Object { $_.Name.EndsWith("*.dir") } | ForEach-Object { Remove-Item $_.FullName -Force -Recurse }
New-Item $(Agent.TempDirectory)/RelWithDebInfo -Force -ItemType Directory
Get-ChildItem -Path "$(Build.BinariesDirectory)/RelWithDebInfo" -File | ForEach-Object { Copy-Item $_.FullName -Destination $(Agent.TempDirectory)/RelWithDebInfo -Force }
Copy-Item -Path "$(Build.BinariesDirectory)/RelWithDebInfo/RelWithDebInfo" -Destination $(Agent.TempDirectory)/RelWithDebInfo -Recurse -Force
cd $(Agent.TempDirectory)/RelWithDebInfo
tree /f
displayName: 'delete symbol files in RelWithDebInfo'
workingDirectory: '$(Build.BinariesDirectory)/RelWithDebInfo'
displayName: 'Copy test needs files'
workingDirectory: '$(Build.BinariesDirectory)'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.BinariesDirectory)/RelWithDebInfo/'
targetPath: '$(Agent.TempDirectory)/RelWithDebInfo'
artifactName: 'Windows_Packaging_${{ parameters.stage_name_suffix }}_build_artifacts'
publishLocation: 'pipeline'

Expand Down

0 comments on commit 205b2da

Please sign in to comment.