Skip to content

Commit

Permalink
Seperate debug information from linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmolot committed Mar 27, 2024
1 parent 4c63a39 commit a98d30f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ jobs:
- name: Build project (Clientside)
run: cmake --build build -j -t moonloader --config ${{env.BUILD_TYPE}}

- name: Strip debug information from binaries and keep them outside (Ubuntu)
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
find *.dll -exec objcopy --only-keep-debug {} {}.pdb \;
find *.dll -exec objcopy --strip-debug {} \;
find *.dll -exec objcopy --add-gnu-debuglink {}.pdb {} \;
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit a98d30f

Please sign in to comment.