diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a2653c310040..fc6439508ceaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | apache-shardingsphere-maven-third-party- diff --git a/.github/workflows/e2e-agent.yml b/.github/workflows/e2e-agent.yml index 4b547e8cd9d8c..31149e6aecb82 100644 --- a/.github/workflows/e2e-agent.yml +++ b/.github/workflows/e2e-agent.yml @@ -60,7 +60,10 @@ jobs: java-version: 21 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-e2e-cache-${{ github.sha }} restore-keys: | apache-shardingsphere-maven-third-party-e2e-cache- @@ -129,7 +132,10 @@ jobs: java-version: 21 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | apache-shardingsphere-maven-third-party- diff --git a/.github/workflows/e2e-operation.yml b/.github/workflows/e2e-operation.yml index 26f02a7c8b9a4..67edf70be453c 100644 --- a/.github/workflows/e2e-operation.yml +++ b/.github/workflows/e2e-operation.yml @@ -92,7 +92,10 @@ jobs: if: (env.skip_current_step == 'false') uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-e2e-cache-${{ github.sha }} restore-keys: | apache-shardingsphere-maven-third-party-e2e-cache- diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml index 03189769e770a..72d4a760664cc 100644 --- a/.github/workflows/e2e-sql.yml +++ b/.github/workflows/e2e-sql.yml @@ -64,7 +64,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-e2e-cache-${{ github.sha }} restore-keys: | apache-shardingsphere-maven-third-party-e2e-cache- @@ -117,7 +120,10 @@ jobs: - uses: actions/checkout@v6.0.1 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-e2e-cache-${{ github.sha }} - uses: actions/setup-java@v5.1.0 with: diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index e4249058839bc..e64da3f3665a1 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -48,7 +48,10 @@ jobs: steps: - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- @@ -88,7 +91,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- @@ -131,7 +137,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- @@ -169,7 +178,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- @@ -192,7 +204,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- @@ -251,7 +266,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- diff --git a/.github/workflows/nightly-check.yml b/.github/workflows/nightly-check.yml index a18338180f4d2..7612c93b3cc8a 100644 --- a/.github/workflows/nightly-check.yml +++ b/.github/workflows/nightly-check.yml @@ -40,7 +40,10 @@ jobs: - uses: actions/checkout@v6.0.1 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- @@ -98,7 +101,10 @@ jobs: languages: java - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- @@ -143,7 +149,10 @@ jobs: - uses: actions/checkout@v6.0.1 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- @@ -162,7 +171,10 @@ jobs: - uses: actions/checkout@v6.0.1 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- @@ -191,7 +203,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: shardingsphere-maven-third-party-e2e-cache-${{ github.sha }} restore-keys: | shardingsphere-maven-third-party-e2e-cache- diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index d9f63e4273804..b6d72e91e58db 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -53,7 +53,10 @@ jobs: java-version: ${{ matrix.java-version }} - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- @@ -85,7 +88,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- @@ -129,7 +135,10 @@ jobs: native-image-job-reports: 'true' - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- diff --git a/.github/workflows/nightly-e2e-agent.yml b/.github/workflows/nightly-e2e-agent.yml index 27af823b2dd5a..9eaa455f38eb4 100644 --- a/.github/workflows/nightly-e2e-agent.yml +++ b/.github/workflows/nightly-e2e-agent.yml @@ -48,7 +48,10 @@ jobs: java-version: 21 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-e2e-cache-${{ github.sha }} restore-keys: | apache-shardingsphere-maven-third-party-e2e-cache- @@ -117,7 +120,10 @@ jobs: java-version: 21 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: apache-shardingsphere-maven-third-party-${{ hashFiles('**/pom.xml') }} restore-keys: | apache-shardingsphere-maven-third-party- diff --git a/.github/workflows/nightly-e2e-operation.yml b/.github/workflows/nightly-e2e-operation.yml index 682a442b448e0..311a1bc58576c 100644 --- a/.github/workflows/nightly-e2e-operation.yml +++ b/.github/workflows/nightly-e2e-operation.yml @@ -70,7 +70,10 @@ jobs: - name: Retrieve Maven Caches uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache- diff --git a/.github/workflows/nightly-e2e-sql.yml b/.github/workflows/nightly-e2e-sql.yml index d7c1cca96c60b..9c3ee9c70b742 100644 --- a/.github/workflows/nightly-e2e-sql.yml +++ b/.github/workflows/nightly-e2e-sql.yml @@ -48,7 +48,10 @@ jobs: java-version: 21 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache- @@ -107,7 +110,10 @@ jobs: - uses: actions/checkout@v6.0.1 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache-${{ github.sha }} - uses: actions/setup-java@v5.1.0 with: diff --git a/.github/workflows/nightly-sql-parser.yml b/.github/workflows/nightly-sql-parser.yml index e87bb9bfb2194..511c4aebd408f 100644 --- a/.github/workflows/nightly-sql-parser.yml +++ b/.github/workflows/nightly-sql-parser.yml @@ -50,7 +50,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- diff --git a/.github/workflows/schedule-report.yml b/.github/workflows/schedule-report.yml index 627bfbdf63912..87f08c1ab07a9 100644 --- a/.github/workflows/schedule-report.yml +++ b/.github/workflows/schedule-report.yml @@ -49,7 +49,10 @@ jobs: restore-keys: ${{ runner.os }}-sonar - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('pom.xml','*/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- @@ -75,7 +78,10 @@ jobs: java-version: 11 - uses: actions/cache@v5.0.1 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + !~/.m2/repository/org/apache/shardingsphere + ~/.m2/repository/org/apache/shardingsphere/elasticjob key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('pom.xml','*/pom.xml') }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-