Skip to content

Lightpanda: the headless browser designed for AI and automation

ops: strip debug symbols

Karl Seguin3433566ccd72
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 93fe84757..a8c3c5826 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -66,11 +66,23 @@ jobs:
- name: Rename binary
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
+ # Debug info is over half the binary. Ship it stripped and keep the
+ # debug info on s3 to symbolize crash reports
+ # (addr2line -e lightpanda-ARCH-linux.debug ADDR...).
+ - name: Split debug info
+ run: |
+ BIN=lightpanda-${{ env.ARCH }}-${{ env.OS }}
+ objcopy --only-keep-debug --compress-debug-sections=zlib $BIN $BIN.debug
+ objcopy --strip-all --add-gnu-debuglink=$BIN.debug $BIN
+ ls -l $BIN $BIN.debug
+
- name: upload on s3
run: |
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
+ aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }}.debug s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}.debug
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${RELEASE}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
+ aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }}.debug s3://lpd-nightly-build/${RELEASE}/lightpanda-${{ env.ARCH }}-${{ env.OS }}.debug
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/agent-${RELEASE}/lightpanda-agent-${{ env.ARCH }}-${{ env.OS }}
- name: Upload the build