-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(query): spilt binary symbol #16861
Draft
zhang2014
wants to merge
11
commits into
databendlabs:main
Choose a base branch
from
zhang2014:chore/split_binary
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+143
−1
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
aa283c1
chore(query): spilt binary symbol
zhang2014 d46df0e
chore(query): spilt binary symbol
zhang2014 144d952
chore(query): spilt binary symbol
zhang2014 de1d10a
chore(query): spilt binary symbol
zhang2014 2801c76
chore(query): spilt binary symbol
zhang2014 71f2ef6
chore(query): spilt binary symbol
zhang2014 91900cc
chore(query): spilt binary symbol
zhang2014 658cea3
chore(query): spilt binary symbol
zhang2014 5f12d54
chore(query): spilt binary symbol
zhang2014 bfd948f
chore(query): spilt binary symbol
zhang2014 9828505
Update action.yml
zhang2014 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: "Pack Binary" | ||
description: "Pack releases binaries" | ||
inputs: | ||
target: | ||
description: "Release target" | ||
required: true | ||
category: | ||
description: "Release default/hdfs/udf/testsuite" | ||
required: false | ||
default: default | ||
version: | ||
description: "Release version" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download artifact | ||
uses: ./.github/actions/artifact_download | ||
with: | ||
sha: ${{ github.sha }} | ||
target: ${{ inputs.target }} | ||
category: ${{ inputs.category }} | ||
path: distro/bin | ||
artifacts: metactl,meta,query | ||
- name: Pack Binaries | ||
id: pack_binaries | ||
shell: bash | ||
run: | | ||
target=${{ inputs.target }} | ||
version=${{ inputs.version }} | ||
case ${{ inputs.category }} in | ||
default) | ||
pkg_name="databend-${version}-${target}" | ||
;; | ||
*) | ||
pkg_name="databend-${{ inputs.category }}-${version}-${target}" | ||
;; | ||
esac | ||
mkdir -p distro/{bin,configs,systemd,scripts} | ||
cp ./scripts/distribution/systemd/databend-* distro/systemd/ | ||
cp ./scripts/distribution/configs/databend-* distro/configs/ | ||
cp ./scripts/distribution/release-readme.txt distro/readme.txt | ||
cp -r ./scripts/distribution/local-scripts/* distro/scripts/ | ||
cp -r ./scripts/distribution/package-scripts/* distro/scripts/ | ||
tar -C ./distro --exclude='*.debug' -czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt | ||
sha256sum ${pkg_name}.tar.gz >> sha256-${pkg_name}.txt | ||
echo "pkg_name=$pkg_name" >> $GITHUB_OUTPUT | ||
- name: post sha256 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sha256sums-${{ inputs.category }}-${{ inputs.target }} | ||
path: sha256-${{ steps.pack_binaries.outputs.pkg_name }}.txt | ||
retention-days: 1 | ||
- name: post binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz | ||
path: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz | ||
retention-days: 1 | ||
- name: Pack DBG Binaries | ||
id: pack_dbg_binaries | ||
shell: bash | ||
run: | | ||
target=${{ inputs.target }} | ||
version=${{ inputs.version }} | ||
case ${{ inputs.category }} in | ||
default) | ||
pkg_name="databend-${version}-${target}-dbg" | ||
;; | ||
*) | ||
pkg_name="databend-${{ inputs.category }}-${version}-${target}-dbg" | ||
;; | ||
esac | ||
mkdir -p distro/{bin,configs,systemd,scripts} | ||
cp ./scripts/distribution/systemd/databend-* distro/systemd/ | ||
cp ./scripts/distribution/configs/databend-* distro/configs/ | ||
cp ./scripts/distribution/release-readme.txt distro/readme.txt | ||
cp -r ./scripts/distribution/local-scripts/* distro/scripts/ | ||
cp -r ./scripts/distribution/package-scripts/* distro/scripts/ | ||
tar -C ./distro -czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt | ||
sha256sum ${pkg_name}.tar.gz >> sha256-${pkg_name}.txt | ||
echo "pkg_name=$pkg_name" >> $GITHUB_OUTPUT | ||
- name: post dbg sha256 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sha256sums-${{ inputs.category }}-${{ inputs.target }}-gdb | ||
path: sha256-${{ steps.pack_dbg_binaries.outputs.pkg_name }}.txt | ||
retention-days: 1 | ||
- name: post binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ steps.pack_dbg_binaries.outputs.pkg_name }}.tar.gz | ||
path: ${{ steps.pack_dbg_binaries.outputs.pkg_name }}.tar.gz | ||
retention-days: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo