Skip to content
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(dist): update validate release scripts for releasing 1.5.0 #379

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/validate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
release_version:
required: true
description: svn release version
default: '1.3.0'
default: '1.5.0'
gpg_user:
required: true
description: current release manager(gpg username)
default: 'imbajin'
description: current release manager (gpg username)
default: 'vgalaxies'

push:
branches:
Expand Down Expand Up @@ -64,6 +64,9 @@ jobs:

- name: 1. Download SVN Sources
run: |
if [[ ${{ matrix.os }} =~ "macos" ]]; then
brew install svn
fi
rm -rf dist/${{ inputs.release_version }}
svn co ${URL_PREFIX}/${{ inputs.release_version }} dist/${{ inputs.release_version }}

Expand Down Expand Up @@ -165,12 +168,15 @@ jobs:
done

# 4.8 test compile the packages
if [[ (${{ matrix.java_version }} == 8 && "$i" =~ "computer") ]] || [[ "$i" =~ 'hugegraph-ai' ]]; then
if [[ (${{ matrix.java_version }} == 8 && "$i" =~ "computer") ]] || [[ "$i" =~ "hugegraph-ai" ]]; then
echo "Skip compile computer module in java8 & AI module in all versions"
popd || exit
continue
fi
# TODO: consider using commands that are entirely consistent with building binary packages
if [[ "$i" =~ "computer" ]]; then
cd computer
fi
mvn package -DskipTests -Papache-release -ntp -e || exit
ls -lh

Expand Down Expand Up @@ -292,7 +298,8 @@ jobs:
run: |
cd dist/${{ inputs.release_version }} || exit

pushd ./*hugegraph-incubating*${{ inputs.release_version }} || exit
# TODO: run pd & store
pushd ./*hugegraph-incubating*${{ inputs.release_version }}/*hugegraph-server-incubating*${{ inputs.release_version }} || exit
bin/init-store.sh || exit
sleep 3
bin/start-hugegraph.sh || exit
Expand Down Expand Up @@ -331,13 +338,14 @@ jobs:

popd || exit
# stop server
pushd ./*hugegraph-incubating*${{ inputs.release_version }} || exit
pushd ./*hugegraph-incubating*${{ inputs.release_version }}/*hugegraph-server-incubating*${{ inputs.release_version }} || exit
bin/stop-hugegraph.sh || exit
popd || exit

strategy:
fail-fast: false
matrix:
java_version: ['8','11']
# disable java8 because of server
java_version: ['11']
# TODO: support windows-latest or other OS in future
os: [ubuntu-latest, macos-latest]
8 changes: 6 additions & 2 deletions dist/validate-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ for i in *src.tar.gz; do
echo "Skip compile $i module in all versions"
elif [[ "$i" =~ "hugegraph-commons" ]]; then
mvn install -DskipTests -Papache-release -ntp -e
elif [[ "$i" =~ "hugegraph-computer" ]]; then
cd computer
mvn install -DskipTests -Papache-release -ntp -e
else
# TODO: consider using commands that are entirely consistent with building binary packages
mvn package -DskipTests -Papache-release -ntp -e
Expand Down Expand Up @@ -290,7 +293,8 @@ done
#########################################
cd "${WORK_DIR}/dist/${RELEASE_VERSION}"

pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"
# TODO: run pd & store
pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"/*hugegraph-server-incubating*"${RELEASE_VERSION}"
bin/init-store.sh
sleep 3
bin/start-hugegraph.sh
Expand Down Expand Up @@ -329,7 +333,7 @@ popd

popd
# stop server
pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"
pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"/*hugegraph-server-incubating*"${RELEASE_VERSION}"
bin/stop-hugegraph.sh
popd

Expand Down
Loading