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 c61f52fc5 fix(java): fix maven cache (#2755)
c61f52fc5 is described below
commit c61f52fc5c55dedc701bf4490d366b2d8d9fc8c3
Author: Shawn Yang <[email protected]>
AuthorDate: Sun Oct 12 23:26:02 2025 +0530
fix(java): fix maven cache (#2755)
<!--
**Thanks for contributing to Apache Fory™.**
**If this is your first time opening a PR on fory, you can refer to
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).**
Contribution Checklist
- The **Apache Fory™** community has requirements on the naming of pr
titles. You can also find instructions in
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).
- Apache Fory™ has a strong focus on performance. If the PR you submit
will have an impact on performance, please benchmark it first and
provide the benchmark result here.
-->
## Why?
<!-- Describe the purpose of this PR. -->
## What does this PR do?
<!-- Describe the details of this PR. -->
## Related issues
<!--
Is there any related issue? If this PR closes them you say say
fix/closes:
- #xxxx0
- #xxxx1
- Fixes #xxxx2
-->
## Does this PR introduce any user-facing change?
<!--
If any user-facing interface changes, please [open an
issue](https://github.com/apache/fory/issues/new/choose) describing the
need to do so and update the document if necessary.
Delete section if not applicable.
-->
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
<!--
When the PR has an impact on performance (if you don't know whether the
PR will have an impact on performance, you can submit the PR first, and
if it will have impact on performance, the code reviewer will explain
it), be sure to attach a benchmark data here.
Delete section if not applicable.
-->
---
.github/workflows/ci.yml | 40 ++++++++++++++++------------------------
1 file changed, 16 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f30db015a..a005e6a80 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,9 +54,8 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: "temurin"
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -97,9 +96,8 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: "adopt-openj9"
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -133,9 +131,8 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: "temurin"
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -163,9 +160,8 @@ jobs:
distribution: "graalvm"
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: "true"
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -194,9 +190,8 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: "temurin"
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -222,9 +217,8 @@ jobs:
java-version: 11
distribution: "temurin"
cache: sbt
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -247,9 +241,8 @@ jobs:
with:
java-version: 11
distribution: "temurin"
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -309,9 +302,8 @@ jobs:
with:
java-version: 11
distribution: temurin
- - name: Restore Maven Repos
- id: restore-maven-cache
- uses: actions/cache/restore@v3
+ - name: Cache Maven local repository
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]