Skip to content

Commit

Permalink
internal: fix folder structure in vcpkg logs artifact (#2310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Feb 5, 2025
1 parent 2a49ab2 commit 0ab91a7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/actions/pr_base/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,20 @@ runs:
shell: powershell
run: |
$logDir = "${{ github.workspace }}\vcpkg_logs"
New-Item -ItemType Directory -Path $logDir -Force | Out-Null
Get-ChildItem -Path "C:\vcpkg\buildtrees" -Filter "*.log" -Recurse | ForEach-Object {
Copy-Item -Path $_.FullName -Destination $logDir -Force
$sourceDir = "C:\vcpkg\buildtrees"
Get-ChildItem -Path $sourceDir -Filter "*.log" -Recurse | ForEach-Object {
$relativePath = $_.FullName.Substring($sourceDir.Length).TrimStart('\')
$destinationPath = Join-Path -Path $logDir -ChildPath $relativePath
New-Item -ItemType Directory -Path (Split-Path -Parent $destinationPath) -Force | Out-Null
Copy-Item -Path $_.FullName -Destination $destinationPath -Force
}
- name: Upload vcpkg logs (Windows)
if: ${{ always() && runner.os == 'Windows' }}
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0ab91a7

Please sign in to comment.