@@ -651,61 +651,3 @@ jobs:
651651 with :
652652 name : " error-inspection-result"
653653 path : ${{ github.workspace }}/dubbo-test-tools/dubbo-error-code-inspector/error-inspection-result.txt
654-
655- native-image-inspecting :
656- needs : check-format
657- runs-on : ubuntu-22.04
658- steps :
659- - uses : actions/checkout@v4
660- with :
661- path : " ./dubbo"
662- - name : " Set up GraalVM environment"
663- uses : graalvm/setup-graalvm@v1
664- with :
665- version : ' 22.3.0'
666- java-version : ' 17'
667- components : ' native-image'
668- github-token : ${{ secrets.GITHUB_TOKEN }}
669- native-image-job-reports : ' true'
670- - name : " Set up Zookeeper environment"
671- run : |
672- wget -t 1 -T 120 https://archive.apache.org/dist/zookeeper/zookeeper-3.8.4/apache-zookeeper-3.8.4-bin.tar.gz
673- tar -zxvf apache-zookeeper-3.8.4-bin.tar.gz
674- mv apache-zookeeper-3.8.4-bin/conf/zoo_sample.cfg apache-zookeeper-3.8.4-bin/conf/zoo.cfg
675- apache-zookeeper-3.8.4-bin/bin/zkServer.sh start
676- - name : " Check environment"
677- run : |
678- java --version
679- native-image --version
680- - name : " Set current date as env variable"
681- run : echo "TODAY=$(date +'%Y%m%d')" >> $GITHUB_ENV
682- - name : " Restore local Maven repository cache"
683- uses : actions/cache/restore@v4
684- with :
685- path : ~/.m2/repository
686- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ env.TODAY }}
687- restore-keys : |
688- ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
689- ${{ runner.os }}-maven-
690- - name : " Compile Dubbo (Linux)"
691- run : |
692- cd ${{ github.workspace }}/dubbo
693- ./mvnw ${{ env.MAVEN_ARGS }} -T 2C clean install -P skip-spotless -Dmaven.test.skip=true -Dcheckstyle.skip=true -Dcheckstyle_unix.skip=true -Drat.skip=true
694- - name : " Checkout dubbo-samples repository"
695- uses : actions/checkout@v4
696- with :
697- repository : ' apache/dubbo-samples'
698- ref : master
699- path : " ./dubbo-samples"
700- - name : " Compile and run Dubbo native image demo"
701- run : |
702- MVNW="${{ github.workspace }}/dubbo-samples/mvnw ${{ env.MAVEN_ARGS }} -Dmaven.test.skip=true"
703- cd ${{ github.workspace }}/dubbo-samples/2-advanced/dubbo-samples-native-image/dubbo-samples-native-image-provider
704- $MVNW clean package -P native native:compile
705- nohup ./target/dubbo-samples-native-image-provider &
706- sleep 10
707- curl \
708- --header "Content-Type: application/json" \
709- --data '{"name":"Dubbo"}' \
710- http://localhost:50052/org.apache.dubbo.nativeimage.DemoService/sayHello/
711-
0 commit comments