-
Notifications
You must be signed in to change notification settings - Fork 2
refactor: unify release validation script and add local path support #19
Changes from all commits
a04fdb3
8a8acf8
b9e896c
97dc1b5
dfd69a7
a86370e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,11 +6,11 @@ on: | |||||
| release_version: | ||||||
| required: true | ||||||
| description: svn release version | ||||||
| default: '1.5.0' | ||||||
| default: '1.7.0' | ||||||
| gpg_user: | ||||||
| required: true | ||||||
| description: current release manager (gpg username) | ||||||
| default: 'vgalaxies' | ||||||
| default: 'Junzhi Peng' | ||||||
|
|
||||||
| push: | ||||||
| branches: | ||||||
|
|
@@ -67,6 +67,9 @@ jobs: | |||||
| if [[ ${{ matrix.os }} =~ "macos" ]]; then | ||||||
| brew install svn | ||||||
| fi | ||||||
| if [[ ${{ matrix.os }} =~ "ubuntu" ]]; then | ||||||
| sudo apt-get install -y subversion | ||||||
| fi | ||||||
| rm -rf dist/${{ inputs.release_version }} | ||||||
| svn co ${URL_PREFIX}/${{ inputs.release_version }} dist/${{ inputs.release_version }} | ||||||
|
|
||||||
|
|
@@ -241,7 +244,7 @@ jobs: | |||||
| - name: 7. Validate Binary Packages | ||||||
| run: | | ||||||
| cd dist/${{ inputs.release_version }} || exit | ||||||
| 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" | ||||||
| for i in *.tar.gz; do | ||||||
| if [[ "$i" == *-src.tar.gz ]]; then | ||||||
| # skip source packages | ||||||
|
|
@@ -347,5 +350,5 @@ jobs: | |||||
| matrix: | ||||||
| # disable java8 because of server | ||||||
| java_version: ['11'] | ||||||
| # TODO: support windows-latest or other OS in future | ||||||
| os: [ubuntu-latest, macos-latest] | ||||||
| # Support multiple OS and architectures (x64 and arm64) | ||||||
| os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-14] | ||||||
|
||||||
| os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-14] | |
| os: [ubuntu-latest, ubuntu-24.04, macos-latest, macos-14] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,3 +28,4 @@ GEMINI.md | |
| .vscode/settings.json | ||
| .aider* | ||
| .gemini/ | ||
| WARP.md | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -125,8 +125,8 @@ PMC 同学请特别注意认真检查 `LICENSE` + `NOTICE` 文件,确保文件 | |||||
| # 请优先使用/切换到 `java 11` 版本进行后序的编译和运行操作 (注:`Computer` 仅支持 `java >= 11`) | ||||||
| # java --version | ||||||
|
|
||||||
| # 尝试在 Unix 环境下编译测试是否正常 (stage 表示从 stage 仓库拉取依赖) | ||||||
| mvn clean package -P stage -Dmaven.test.skip=true -Dcheckstyle.skip=true | ||||||
| # 尝试在 Unix 环境下编译测试是否正常 | ||||||
|
||||||
| # 尝试在 Unix 环境下编译测试是否正常 | |
| # 尝试在 Unix 环境下编译测试是否正常,注意使用 `-P stage` 以便使用 stage 仓库进行编译 |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -136,8 +136,8 @@ After decompressing `*hugegraph*src.tar.gz`, Do the following checks: | |||||||||
| # prefer to use/switch to `java 11` for the following operations (compiling/running) (Note: `Computer` only supports `java >= 11`) | ||||||||||
| # java --version | ||||||||||
|
|
||||||||||
| # try to compile in the Unix env to check if it works well | ||||||||||
| mvn clean package -P stage -Dmaven.test.skip=true -Dcheckstyle.skip=true | ||||||||||
| # try to compile in the Unix env to check if it works well (-P is optional) | ||||||||||
|
||||||||||
| # try to compile in the Unix env to check if it works well (-P is optional) | |
| # try to compile in the Unix env to check if it works well (-P is optional) | |
| mvn clean package -DskipTests -Dcheckstyle.skip=true | |
| # or, if you want to use the 'stage' profile: |
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.
Incomplete regex pattern: The pattern ends with
|JSONbut should be|JSON\.orgto match the source script. The backslash and.orgare missing, which could result in false positives (matching any occurrence of "JSON" instead of specifically "JSON.org" license references).