Skip to content

Commit

Permalink
ci(agent): zip all debug symbol files together (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit authored Aug 20, 2024
1 parent 570c8e0 commit 8fa56c7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,19 @@ jobs:
}
}
- name: Zip debug symbol files
if: matrix.project == 'devolutions-agent' && matrix.os == 'windows'
shell: pwsh
run: |
$PackageRoot = Join-Path ${{ runner.temp }} ${{ matrix.project}}
Get-ChildItem -Path $PackageRoot -Recurse
Compress-Archive "$PackageRoot\windows\x86_64\*.pdb" "$PackageRoot\windows\x86_64\DevolutionsAgent-x86_64-${{ needs.preflight.outputs.version }}.symbols.zip" -CompressionLevel Optimal
Remove-Item "$PackageRoot\windows\x86_64\*.pdb" | Out-Null
Get-ChildItem -Path $PackageRoot -Recurse
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ jobs:
run: |
$Version = "${{ needs.preflight.outputs.version }}"
$HashPath = 'checksums'
$Files = Get-ChildItem -Recurse -File -Exclude 'CHANGELOG.md','*.pdb' | % { Get-FileHash -Algorithm SHA256 $_.FullName }
$Files = Get-ChildItem -Recurse -File -Exclude 'CHANGELOG.md' | % { Get-FileHash -Algorithm SHA256 $_.FullName }
$Files | % { "$($_.Hash) $(Split-Path $_.Path -leaf)" } | Out-File -FilePath $HashPath -Append -Encoding ASCII
echo "::group::checksums"
Expand Down Expand Up @@ -405,12 +405,7 @@ jobs:
New-Item -Path "$destinationFolder" -ItemType "directory"
Move-Item -Path "./windows/x86_64/DevolutionsAgent-x86_64-${version}.msi" -Destination "$destinationFolder/DevolutionsAgent-x86_64-${versionFull}.msi"
Move-Item -Path "./windows/x86_64/DevolutionsAgent_Windows_${version}_x86_64.pdb" -Destination "$destinationFolder/DevolutionsAgent-x86_64-${versionFull}.pdb"
Move-Item -Path "./windows/x86_64/devolutions_pedm_contextmenu_shell.pdb" -Destination "$destinationFolder/devolutions_pedm_contextmenu_shell.pdb"
Move-Item -Path "./windows/x86_64/devolutions_pedm_contextmenu.pdb" -Destination "$destinationFolder/devolutions_pedm_contextmenu.pdb"
Move-Item -Path "./windows/x86_64/devolutions_pedm_hook.pdb" -Destination "$destinationFolder/devolutions_pedm_hook.pdb"
Move-Item -Path "./windows/x86_64/DevolutionsPedmDesktop.pdb" -Destination "$destinationFolder/DevolutionsPedmDesktop.pdb"
Move-Item -Path "./windows/x86_64/DevolutionsAgent-x86_64-${version}.symbols.zip" -Destination "$destinationFolder/DevolutionsAgent-x86_64-${versionFull}.symbols.zip"
# Note that at this point the deb package is already named using the ".0" suffix.
Move-Item -Path "./linux/x86_64/devolutions-agent_${versionFull}_amd64.deb" -Destination "$destinationFolder/devolutions-agent_${versionFull}_amd64.deb"
Expand Down

0 comments on commit 8fa56c7

Please sign in to comment.