Skip to content

Commit

Permalink
chore(dist): update validate release scripts for releasing 1.5.0 (#379)
Browse files Browse the repository at this point in the history
* add JSON license to CATEGORY_X
  • Loading branch information
VGalaxies authored Dec 11, 2024
1 parent d0d880a commit 7ce54e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
24 changes: 16 additions & 8 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 @@ -99,7 +102,7 @@ jobs:
cd dist/${{ inputs.release_version }} || exit
ls -lh ./*.tar.gz
CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial"
CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial|JSON"
CATEGORY_B="\bCDDL1|\bCPL|\bEPL|\bIPL|\bMPL|\bSPL|OSL-3.0|UnRAR License|Erlang Public License|\bOFL\b|Ubuntu Font License Version 1.0|IPA Font License Agreement v1.0|EPL2.0|CC-BY"
for i in *src.tar.gz; do
echo "$i"
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]
10 changes: 7 additions & 3 deletions dist/validate-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ done
####################################
cd "${WORK_DIR}/dist/${RELEASE_VERSION}"

CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial"
CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial|JSON"
CATEGORY_B="\bCDDL1|\bCPL|\bEPL|\bIPL|\bMPL|\bSPL|OSL-3.0|UnRAR License|Erlang Public License|\bOFL\b|Ubuntu Font License Version 1.0|IPA Font License Agreement v1.0|EPL2.0|CC-BY"
ls -lh ./*.tar.gz
for i in *src.tar.gz; do
Expand Down 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

0 comments on commit 7ce54e2

Please sign in to comment.