Skip to content

Commit e544a90

Browse files
authored
ci: publish debug symbols for docker binary (#18444)
1 parent 1c650e8 commit e544a90

File tree

3 files changed

+45
-16
lines changed

3 files changed

+45
-16
lines changed

.github/actions/pack_binaries/action.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
description: "Release target"
66
required: true
77
category:
8-
description: "Release default/hdfs/udf/testsuite/dbg"
8+
description: "Release default/hdfs/udf/testsuite"
99
required: false
1010
default: default
1111
version:
@@ -15,17 +15,7 @@ inputs:
1515
runs:
1616
using: "composite"
1717
steps:
18-
- name: Download artifact for dbg
19-
if: inputs.category == 'dbg'
20-
uses: ./.github/actions/artifact_download
21-
with:
22-
sha: ${{ github.sha }}
23-
target: ${{ inputs.target }}
24-
category: default
25-
path: distro/bin
26-
artifacts: metactl,meta,query,query.debug,bendsave
2718
- name: Download artifact for others
28-
if: inputs.category != 'dbg'
2919
uses: ./.github/actions/artifact_download
3020
with:
3121
sha: ${{ github.sha }}

.github/actions/publish_binary/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
default)
2424
publish_name="databend-${{ inputs.version }}-${{ inputs.target }}"
2525
;;
26-
hdfs|udf|testsuite|dbg)
26+
hdfs|udf|testsuite)
2727
publish_name="databend-${{ inputs.category }}-${{ inputs.version }}-${{ inputs.target }}"
2828
;;
2929
*)

.github/workflows/release.yml

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ jobs:
197197
strategy:
198198
fail-fast: false
199199
matrix:
200-
category:
201-
- default
202-
- dbg
203200
target:
204201
- x86_64-unknown-linux-gnu
205202
- aarch64-unknown-linux-gnu
@@ -213,7 +210,7 @@ jobs:
213210
with:
214211
version: ${{ needs.create_release.outputs.version }}
215212
target: ${{ matrix.target }}
216-
category: ${{ matrix.category }}
213+
category: default
217214
- name: Publish Binaries
218215
uses: ./.github/actions/publish_binary
219216
env:
@@ -225,7 +222,49 @@ jobs:
225222
with:
226223
version: ${{ needs.create_release.outputs.version }}
227224
target: ${{ matrix.target }}
225+
category: default
226+
227+
publish_dbg:
228+
runs-on:
229+
- self-hosted
230+
- X64
231+
- Linux
232+
- 2c8g
233+
- aws
234+
needs: [create_release, build_default, build_docker]
235+
strategy:
236+
fail-fast: false
237+
matrix:
238+
category:
239+
- default
240+
- docker
241+
target:
242+
- x86_64-unknown-linux-gnu
243+
- aarch64-unknown-linux-gnu
244+
steps:
245+
- name: Checkout
246+
uses: actions/checkout@v4
247+
with:
248+
ref: ${{ needs.create_release.outputs.sha }}
249+
- name: Download artifact
250+
uses: ./.github/actions/artifact_download
251+
with:
252+
sha: ${{ github.sha }}
253+
target: ${{ matrix.target }}
228254
category: ${{ matrix.category }}
255+
artifacts: query.debug
256+
- name: Prepare artifact
257+
id: prepare
258+
run: |
259+
publish_name="databend-query-${{ matrix.category }}-${{ needs.create_release.outputs.version }}-${{ matrix.target }}.debug.gz"
260+
gzip query.debug
261+
mv query.debug.gz ${publish_name}
262+
echo "publish_name=${publish_name}" >> $GITHUB_OUTPUT
263+
- name: Upload to Release
264+
env:
265+
GH_TOKEN: ${{ github.token }}
266+
run: |
267+
gh release upload ${{ needs.create_release.outputs.version }} ${{ steps.prepare.outputs.publish_name }} --clobber
229268
230269
publish_testsuite:
231270
runs-on:

0 commit comments

Comments
 (0)