forked from mirrors/principia
Upload debug symbols for Linux artifact
This commit is contained in:
parent
0b0c9a15a2
commit
7085fbabe3
2 changed files with 14 additions and 3 deletions
6
.github/workflows/linux.yml
vendored
6
.github/workflows/linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue