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

albumenj pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 99395bd0a8 Fix native image ci configuration (#14627)
99395bd0a8 is described below

commit 99395bd0a8c207fd011f5657df2370b26cd170b6
Author: Albumen Kevin <[email protected]>
AuthorDate: Thu Sep 5 10:04:18 2024 +0800

    Fix native image ci configuration (#14627)
---
 .github/workflows/build-and-test-scheduled-3.3.yml | 13 ++++++++-----
 .github/workflows/release-test.yml                 | 13 ++++++++-----
 2 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/build-and-test-scheduled-3.3.yml 
b/.github/workflows/build-and-test-scheduled-3.3.yml
index 08673d0d56..3240efb8f8 100644
--- a/.github/workflows/build-and-test-scheduled-3.3.yml
+++ b/.github/workflows/build-and-test-scheduled-3.3.yml
@@ -490,13 +490,16 @@ jobs:
       - name: "Compile Dubbo (Linux)"
         run: |
           cd ${{ github.workspace }}/dubbo
-          ./mvnw --batch-mode --no-snapshot-updates -e --no-transfer-progress 
--fail-fast -T 2C clean install -DskipTests=true -DskipIntegrationTests=true 
-Dcheckstyle.skip=true -Dcheckstyle_unix.skip=true -Drat.skip=true 
-Dmaven.javadoc.skip=true
+          ./mvnw ${{ env.MAVEN_ARGS }} -T 2C clean install -P 
'!demo',skip-spotless -Dmaven.test.skip=true -Dcheckstyle.skip=true 
-Dcheckstyle_unix.skip=true -Drat.skip=true
 
       - name: "Compile and run Dubbo demo for native (Linux)"
         run: |
-          cd ${{ github.workspace 
}}/dubbo/dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider
-          ${{ github.workspace }}/dubbo/mvnw --batch-mode 
--no-snapshot-updates -e --no-transfer-progress --fail-fast -T 2C clean package 
-P native -Dmaven.test.skip=true native:compile
+          cd ${{ github.workspace 
}}/dubbo/dubbo-demo/dubbo-demo-native/dubbo-demo-native-interface
+          MVNW="${{ github.workspace }}/dubbo/mvnw ${{ env.MAVEN_ARGS }} -T 2C 
-Dmaven.test.skip=true"
+          $MVNW clean install
+          cd ../dubbo-demo-native-provider
+          $MVNW clean package -P native  native:compile
           nohup ./target/dubbo-demo-native-provider &
-          cd ${{ github.workspace 
}}/dubbo/dubbo-demo/dubbo-demo-native/dubbo-demo-native-consumer
-          ${{ github.workspace }}/dubbo/mvnw --batch-mode 
--no-snapshot-updates -e --no-transfer-progress --fail-fast -T 2C clean package 
-P native -Dmaven.test.skip=true native:compile
+          cd ../dubbo-demo-native-consumer
+          $MVNW clean package -P native native:compile
           ./target/dubbo-demo-native-consumer
diff --git a/.github/workflows/release-test.yml 
b/.github/workflows/release-test.yml
index 01dceec6bd..dea1cf2d4c 100644
--- a/.github/workflows/release-test.yml
+++ b/.github/workflows/release-test.yml
@@ -485,13 +485,16 @@ jobs:
       - name: "Compile Dubbo (Linux)"
         run: |
           cd ${{ github.workspace }}/dubbo
-          ./mvnw --batch-mode --no-snapshot-updates -e --no-transfer-progress 
--fail-fast -T 2C clean install -DskipTests=true -DskipIntegrationTests=true 
-Dcheckstyle.skip=true -Dcheckstyle_unix.skip=true -Drat.skip=true 
-Dmaven.javadoc.skip=true
+          ./mvnw ${{ env.MAVEN_ARGS }} -T 2C clean install -P 
'!demo',skip-spotless -Dmaven.test.skip=true -Dcheckstyle.skip=true 
-Dcheckstyle_unix.skip=true -Drat.skip=true
 
       - name: "Compile and run Dubbo demo for native (Linux)"
         run: |
-          cd ${{ github.workspace 
}}/dubbo/dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider
-          ${{ github.workspace }}/dubbo/mvnw --batch-mode 
--no-snapshot-updates -e --no-transfer-progress --fail-fast -T 2C clean package 
-P native -Dmaven.test.skip=true native:compile
+          cd ${{ github.workspace 
}}/dubbo/dubbo-demo/dubbo-demo-native/dubbo-demo-native-interface
+          MVNW="${{ github.workspace }}/dubbo/mvnw ${{ env.MAVEN_ARGS }} -T 2C 
-Dmaven.test.skip=true"
+          $MVNW clean install
+          cd ../dubbo-demo-native-provider
+          $MVNW clean package -P native  native:compile
           nohup ./target/dubbo-demo-native-provider &
-          cd ${{ github.workspace 
}}/dubbo/dubbo-demo/dubbo-demo-native/dubbo-demo-native-consumer
-          ${{ github.workspace }}/dubbo/mvnw --batch-mode 
--no-snapshot-updates -e --no-transfer-progress --fail-fast -T 2C clean package 
-P native -Dmaven.test.skip=true native:compile
+          cd ../dubbo-demo-native-consumer
+          $MVNW clean package -P native native:compile
           ./target/dubbo-demo-native-consumer

Reply via email to