Skip to content

Commit c8bc7ca

Browse files
committed
upload debug symbol
1 parent 2c93c5a commit c8bc7ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/actions/build_linux/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ runs:
107107
strip --strip-debug --remove-section=.comment --remove-section=.note ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query
108108
pushd ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }} && objcopy --add-gnu-debuglink databend-query.debug databend-query && popd
109109
110+
- name: Upload databend-query.debug (GitHub Artifact)
111+
# Keep debug symbols in GitHub Artifacts for quick retrieval.
112+
if: inputs.upload == 'true' && inputs.trim_debug == 'true'
113+
uses: actions/upload-artifact@v4
114+
with:
115+
name: databend-query-debug-${{ inputs.target }}-${{ inputs.sha }}
116+
path: ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query.debug
117+
110118
# - name: Compress Binaries with UPX
111119
# if: env.BUILD_PROFILE == 'debug'
112120
# uses: crazy-max/ghaction-upx@v2

0 commit comments

Comments
 (0)