From e1dfb1085e6cb920e2f4ff03a2336e62b27d80fe Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 21 Dec 2023 11:17:17 +0100 Subject: [PATCH] modify release workflows to add debug info artifacts --- .github/workflows/linux.yml | 12 ++++++++++++ .github/workflows/release.yml | 22 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9b7de8c..593e2b8 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -47,6 +47,12 @@ jobs: name: BeamMP-Server-debian path: ./bin/BeamMP-Server + - name: Archive server debug info artifact + uses: actions/upload-artifact@v2 + with: + name: BeamMP-Server-debian.debug + path: ./bin/BeamMP-Server.debug + - name: Build Tests run: bash ./scripts/debian-11/3-build-tests.sh @@ -101,6 +107,12 @@ jobs: name: BeamMP-Server-ubuntu path: ./bin/BeamMP-Server + - name: Archive server debug info artifact + uses: actions/upload-artifact@v2 + with: + name: BeamMP-Server-ubuntu.debug + path: ./bin/BeamMP-Server.debug + - name: Build Tests run: bash ./scripts/ubuntu-22.04/3-build-tests.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1105fd5..46ae3df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,6 +83,17 @@ jobs: asset_path: ./bin/BeamMP-Server asset_name: BeamMP-Server-debian asset_content_type: application/x-elf + + - name: Upload Debug Info + id: upload-debug-info + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: ./bin/BeamMP-Server.debug + asset_name: debuginfo-debian.debug + asset_content_type: application/x-elf upload-release-files-ubuntu-22-04: name: Build and upload Ubuntu 22.04 Release Files @@ -131,6 +142,17 @@ jobs: asset_name: BeamMP-Server-ubuntu asset_content_type: application/x-elf + - name: Upload Debug Info + id: upload-debug-info + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: ./bin/BeamMP-Server.debug + asset_name: debuginfo-ubuntu.debug + asset_content_type: application/x-elf + upload-release-files-windows: name: Build and upload Windows Release Files runs-on: windows-latest