From 2549345cc720b9989e64b766b4a9e1ac7deca585 Mon Sep 17 00:00:00 2001 From: Richard Markiewicz Date: Wed, 6 Nov 2024 12:00:32 -0500 Subject: [PATCH] ci: update package workflow --- .github/workflows/package.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) 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: