Skip to content

Commit

Permalink
Upload debug symbols for Linux artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Dec 5, 2024
1 parent 0b0c9a1 commit 7085fba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ jobs:
with:
name: Principia-x86_64.AppImage
path: build/Principia-x86_64.AppImage

- name: Upload debug symbols as artifact
uses: actions/upload-artifact@v4
with:
name: linux-appimage-dbgsym
path: build/principia.debug
11 changes: 8 additions & 3 deletions packaging/build-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@ fi
# Remove old appdir
rm -rf AppDir

# Compile and install into AppDir
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=AppDir/usr/
# Compile
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=AppDir/usr/
ninja
ninja install

# Strip binary and create debug symbol file
objcopy --only-keep-debug principia principia.debug
objcopy --strip-debug --add-gnu-debuglink=principia.debug principia

# Install into AppDir
ninja install
cd AppDir

# Put desktop and icon at root
Expand Down

0 comments on commit 7085fba

Please sign in to comment.