Skip to content

Commit

Permalink
Test release.
Browse files Browse the repository at this point in the history
  • Loading branch information
CPWstatic committed Sep 24, 2021
1 parent 6f3652c commit 014c66f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu1604
- ubuntu1804
- ubuntu2004
#- ubuntu1604
#- ubuntu1804
#- ubuntu2004
# - centos6
- centos7
- centos8
#- centos8
container:
image: vesoft/nebula-dev:${{ matrix.os }}
env:
BUILD_DIR: ./pkg-build
CPACK_DIR: ./pkg-build/cpack_output
SYMS_DIR: ./pkg-build/syms
SYMS_DIR: ./pkg-build/symbols
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/tagname-action
Expand Down Expand Up @@ -64,9 +64,9 @@ jobs:
matrix:
service:
- graphd
- metad
- storaged
- tools
#- metad
#- storaged
#- tools
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/tagname-action
Expand All @@ -80,7 +80,7 @@ jobs:
with:
context: .
file: ./docker/Dockerfile.${{ matrix.service }}
tags: vesoft/nebula-${{ matrix.service }}:${{ steps.tagname.outputs.tag }},vesoft/nebula-${{ matrix.service }}:latest
tags: cpw/nebula-${{ matrix.service }}:${{ steps.tagname.outputs.tag }},vesoft/nebula-${{ matrix.service }}:latest
push: true
build-args: |
BRANCH=${{ steps.tagname.outputs.tag }}
14 changes: 13 additions & 1 deletion package/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,18 @@ function _find_dump_syms_tool {
fi
}

# This is only for releasing the disk resources.
function _strip_unnecessary_binaries {
for bin in $(ls -1 -F ${build_dir}/bin/ | grep -v [/$]); do
if ! (strip ${build_dir}/bin/${bin}); then
echo ">>> strip ${bin} faild: $?. <<<"
exit 1
fi
done
}

function dump_syms {
_strip_unnecessary_binaries
_find_dump_syms_tool
dump_syms=${dump_syms_tool_dir}/dump_syms

Expand All @@ -188,14 +199,15 @@ function dump_syms {

for bin in nebula-graphd nebula-storaged nebula-metad; do
if ! (${dump_syms} ${build_dir}/bin/${bin} > ${syms_dir}/${bin}${ver}.sym); then
echo ">>> dump ${bin} symbols faild. <<<"
echo ">>> dump ${bin} symbols faild: $?. <<<"
exit 1
fi
done
}

# The main
build $version $enablesanitizer $static_sanitizer $build_type $branch
rm -rf ${build_dir}/src
package $strip_enable
if [[ $dump_symbols == ON ]]; then
echo ">>> start dump symbols <<<"
Expand Down

0 comments on commit 014c66f

Please sign in to comment.