This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new bbb36d6e2d3 Refactor : update the build workflow (#33901)
bbb36d6e2d3 is described below

commit bbb36d6e2d3e9a38bfff04a5244e1cbe57be675c
Author: 孙念君 Nianjun Sun <sunnian...@apache.org>
AuthorDate: Tue Dec 3 20:45:44 2024 +0800

    Refactor : update the build workflow (#33901)
---
 .github/workflows/nightly-build.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/nightly-build.yml 
b/.github/workflows/nightly-build.yml
index 03bb5922b1f..7fe2766efda 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -134,6 +134,7 @@ jobs:
       - name: Push Docker Image
         run: |
           ./mvnw -am -pl distribution/proxy-native 
-Prelease.native,docker.buildx.push.native -B -T1C -DskipTests 
-Dproxy.native.image.repository=${{ env.PROXY_NATIVE }} 
-Dproxy.native.image.tag=${{ github.sha }} clean package
+  
   build-agent-image:
     if: github.repository == 'apache/shardingsphere'
     name: Build Agent Image
@@ -160,9 +161,10 @@ jobs:
       - name: Push Docker Image
         run: |
           ./mvnw -am -pl distribution/agent -Prelease,docker.buildx.push -B 
-T1C -DskipTests -Dagent.image.repository=${{ env.AGENT }} 
-Dagent.image.tag=${{ github.sha }} clean package
+  
   build-cache:
-    if: ${{ needs.global-environment.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE 
== 'true' }}
-    name: Build Project
+    if: github.repository == 'apache/shardingsphere'
+    name: Build Project Cache
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 15
@@ -179,7 +181,7 @@ jobs:
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
       - name: Build with Maven
-        run: ./mvnw -B -T1C -ntp clean install -DskipITs -DskipTests
+        run: ./mvnw clean install -B -ntp -T1C -DskipTests
   
   generate-and-test-examples:
     name: Example-${{ matrix.feature }}-${{ matrix.framework }}-${{ 
matrix.mode }}-${{ matrix.transaction }}

Reply via email to