diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index af8f8d1c..ba940f29 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -300,6 +300,15 @@ jobs: name: native-libs path: native-libs + - 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 "$PackageRoot\windows\x86_64\*.pdb" -Recurse | Compress-Archive -DestinationPath "$PackageRoot\windows\x86_64\DevolutionsAgent-x86_64-${{ needs.preflight.outputs.version }}.symbols.zip" -CompressionLevel Optimal + Get-ChildItem "$PackageRoot\windows\x86_64\*.pdb" -Recurse | Remove-Item | Out-Null + - name: Regenerate Gateway MSI if: matrix.project == 'devolutions-gateway' && matrix.os == 'windows' shell: pwsh @@ -426,17 +435,6 @@ 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 "$PackageRoot\windows\x86_64\*.pdb" -Recurse | Compress-Archive -DestinationPath "$PackageRoot\windows\x86_64\DevolutionsAgent-x86_64-${{ needs.preflight.outputs.version }}.symbols.zip" -CompressionLevel Optimal - Get-ChildItem "$PackageRoot\windows\x86_64\*.pdb" -Recurse | Remove-Item | Out-Null - - Get-ChildItem -Path $PackageRoot -Recurse - - name: Upload artifacts uses: actions/upload-artifact@v4 with: