This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git
The following commit(s) were added to refs/heads/main by this push:
new 54d2db9bf chore: fix release script (#3867)
54d2db9bf is described below
commit 54d2db9bf3abb52789c0f912a7cd48d71007443c
Author: Shawn Yang <[email protected]>
AuthorDate: Thu Jul 16 23:36:29 2026 +0530
chore: fix release script (#3867)
## Why?
## What does this PR do?
## Related issues
## AI Contribution Checklist
- [ ] Substantial AI assistance was used in this PR: `yes` / `no`
- [ ] If `yes`, I included a completed [AI Contribution
Checklist](https://github.com/apache/fory/blob/main/AI_POLICY.md#9-contributor-checklist-for-ai-assisted-prs)
in this PR description and the required `AI Usage Disclosure`.
- [ ] If `yes`, my PR description includes the required `ai_review`
summary and screenshot evidence or equivalent persisted links of the
final clean AI review results from both fresh reviewers described in
`AI_POLICY.md`, the Fory-guided reviewer and the independent general
reviewer, on the current PR diff or current HEAD after the latest code
changes.
## Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
---
.github/workflows/release-javascript.yaml | 2 +-
.github/workflows/release-rust.yaml | 2 +-
ci/deploy.sh | 7 ++++++-
ci/release.py | 11 ++++++++++-
4 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/release-javascript.yaml
b/.github/workflows/release-javascript.yaml
index f0c43db2e..239ab81b6 100644
--- a/.github/workflows/release-javascript.yaml
+++ b/.github/workflows/release-javascript.yaml
@@ -42,7 +42,7 @@ jobs:
- uses: actions/setup-node@v4
with:
- node-version: '20'
+ node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Upgrade npm for trusted publishing
diff --git a/.github/workflows/release-rust.yaml
b/.github/workflows/release-rust.yaml
index 9ce88548f..398f2725f 100644
--- a/.github/workflows/release-rust.yaml
+++ b/.github/workflows/release-rust.yaml
@@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
# stable
+ - uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30
# stable
- name: Bump rust version
shell: bash
diff --git a/ci/deploy.sh b/ci/deploy.sh
index fbd5090a1..6e2e9a953 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -150,7 +150,12 @@ build_pyfory() {
}
install_pyarrow() {
- $PIP_CMD install pyarrow numpy
+ # Newer PyArrow and NumPy Linux wheels require manylinux_2_28.
+ if [[ ${PLAT:-} == manylinux2014_* ]]; then
+ $PIP_CMD install "pyarrow<21" "numpy<2.3"
+ else
+ $PIP_CMD install pyarrow numpy
+ fi
}
deploy_scala() {
diff --git a/ci/release.py b/ci/release.py
index 24dd645e5..7f7f6b7bc 100644
--- a/ci/release.py
+++ b/ci/release.py
@@ -668,6 +668,7 @@ def bump_rust_version(new_version):
rust_version,
_update_cargo_lock_version,
)
+ _bump_version("rust/fory/src", "lib.rs", rust_version,
_update_rust_doc_version)
def bump_kotlin_version(new_version):
@@ -816,7 +817,7 @@ def _update_pom_parent_version(lines, new_version):
def _update_android_tests_dependency_version(lines, new_version):
for index, line in enumerate(lines):
lines[index] = re.sub(
-
r"(org\.apache\.fory:fory-(?:core|annotation-processor):)[^'`)\s]+",
+
r"(org\.apache\.fory:fory-(?:core|json|annotation-processor):)[^'`)\s]+",
r"\g<1>" + new_version,
line,
)
@@ -946,6 +947,14 @@ def _update_cargo_lock_version(lines, v: str):
return lines
+def _update_rust_doc_version(lines, v: str):
+ for index, line in enumerate(lines):
+ if re.match(r'^//!\s+fory\s*=\s*"', line):
+ lines[index] = re.sub(r'"[^"]+"', f'"{v}"', line, count=1)
+ break
+ return lines
+
+
def _update_cmake_project_version(lines, v: str):
cmake_version = _normalize_cmake_version(v)
in_project = False
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]