zhouyuan commented on code in PR #10204:
URL: 
https://github.com/apache/incubator-gluten/pull/10204#discussion_r2224820241


##########
.github/workflows/velox_nightly.yml:
##########
@@ -166,3 +165,167 @@ jobs:
           remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
           remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
           remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
+
+
+  #TODO: split ARM section into different file
+  build-native-lib-centos-8-arm64:
+    runs-on: ubuntu-24.04-arm
+    container: apache/gluten:vcpkg-centos-8
+    steps:
+      - uses: actions/checkout@v4
+      - name: Get Ccache
+        uses: actions/cache/restore@v4
+        with:
+          path: '${{ env.CCACHE_DIR }}'
+          key: ccache-centos8-release-default-${{runner.arch}}-${{github.sha}}
+          restore-keys: |
+            ccache-centos8-release-default-${{runner.arch}}
+      - name: Build Gluten native libraries
+        run: |
+          df -a
+          bash dev/ci-velox-buildstatic-centos-8.sh
+          ccache -s
+          mkdir -p $GITHUB_WORKSPACE/.m2/repository/org/apache/arrow/
+          cp -r /root/.m2/repository/org/apache/arrow/* 
$GITHUB_WORKSPACE/.m2/repository/org/apache/arrow/
+      - name: "Save ccache"
+        uses: actions/cache/save@v4
+        id: ccache
+        with:
+          path: '${{ env.CCACHE_DIR }}'
+          key: ccache-centos8-release-default-${{runner.arch}}-${{github.sha}}
+      - uses: actions/upload-artifact@v4
+        with:
+          name: velox-native-lib-centos-8-${{github.sha}}
+          path: ./cpp/build/releases/
+          if-no-files-found: error
+      - uses: actions/upload-artifact@v4
+        with:
+          name: velox-arrow-jar-centos-8-${{github.sha}}
+          path: .m2/repository/org/apache/arrow/
+          if-no-files-found: error
+
+  build-bundle-package-centos8-jdk8-arm64:
+    needs: build-native-lib-centos-8-arm64
+    runs-on: ubuntu-22.04-arm
+    container: centos:8
+    steps:
+      - uses: actions/checkout@v4
+      - name: Download All Artifacts
+        uses: actions/download-artifact@v4
+        with:
+          name: velox-native-lib-centos-8-${{github.sha}}
+          path: ./cpp/build/releases
+      - name: Download All Arrow Jar Artifacts
+        uses: actions/download-artifact@v4
+        with:
+          name: velox-arrow-jar-centos-8-${{github.sha}}
+          path: /root/.m2/repository/org/apache/arrow/
+      - name: Setup java and maven
+        run: |
+          sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
+          sed -i 
's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' 
/etc/yum.repos.d/CentOS-* && \
+          yum update -y && yum install -y java-1.8.0-openjdk-devel wget
+          $SETUP install_maven
+      - name: Get current date
+        id: date
+        run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
+      - name: Build package for Spark
+        run: |
+          cd $GITHUB_WORKSPACE/ && \
+          export MAVEN_HOME=/usr/lib/maven && \
+          export PATH=${PATH}:${MAVEN_HOME}/bin && \
+          mvn clean install -Pspark-3.2 -Pbackends-velox -Pceleborn -Puniffle 
-DskipTests -Dmaven.source.skip
+          mvn clean install -Pspark-3.3 -Pbackends-velox -Pceleborn -Puniffle 
-DskipTests -Dmaven.source.skip
+          mvn clean install -Pspark-3.4 -Pbackends-velox -Pceleborn -Puniffle 
-DskipTests -Dmaven.source.skip
+          mvn clean install -Pspark-3.5 -Pbackends-velox -Pceleborn -Puniffle 
-DskipTests -Dmaven.source.skip
+      - name: Upload bundle package
+        uses: actions/upload-artifact@v4
+        with:
+          name: nightly-gluten-velox-bundle-package-jdk8-arm64-${{ 
steps.date.outputs.date }}
+          path: package/target/gluten-velox-bundle-*.jar
+          retention-days: 7
+
+  build-bundle-package-centos8-jdk17-arm64:
+    needs: build-native-lib-centos-8-arm64
+    runs-on: ubuntu-22.04-arm
+    container: centos:8
+    steps:
+      - uses: actions/checkout@v4
+      - name: Download All Artifacts
+        uses: actions/download-artifact@v4
+        with:
+          name: velox-native-lib-centos-8-${{github.sha}}
+          path: ./cpp/build/releases
+      - name: Download All Arrow Jar Artifacts
+        uses: actions/download-artifact@v4
+        with:
+          name: velox-arrow-jar-centos-8-${{github.sha}}
+          path: /root/.m2/repository/org/apache/arrow/
+      - name: Setup java and maven
+        run: |
+          sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
+          sed -i 
's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' 
/etc/yum.repos.d/CentOS-* && \
+          yum update -y && yum install -y java-17-openjdk-devel wget
+          $SETUP install_maven
+      - name: Get current date
+        id: date
+        run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
+      - name: Build package for Spark
+        run: |
+          cd $GITHUB_WORKSPACE/ && \
+          export MAVEN_HOME=/usr/lib/maven && \
+          export PATH=${PATH}:${MAVEN_HOME}/bin && \
+          mvn clean install -Pspark-3.4 -Pjava-17 -Pbackends-velox -Pceleborn 
-Puniffle -Piceberg -Phudi -Pdelta -DskipTests -Dmaven.source.skip
+          mvn clean install -Pspark-3.5 -Pjava-17 -Pbackends-velox -Pceleborn 
-Puniffle -Piceberg -Phudi -Pdelta -DskipTests -Dmaven.source.skip
+      - name: Upload bundle package
+        uses: actions/upload-artifact@v4
+        with:
+          name: nightly-gluten-velox-bundle-package-jdk17-arm64-${{ 
steps.date.outputs.date }}
+          path: package/target/gluten-velox-bundle-*.jar
+          retention-days: 7
+
+  upload-jdk8-package-arm64:
+    needs: [build-bundle-package-centos8-jdk8-arm64]
+    runs-on: ubuntu-22.04
+    steps:
+      - name: Get current date
+        id: date
+        run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
+      - name: Download JDK8 Package Artifacts
+        uses: actions/download-artifact@v4
+        with:
+          name: nightly-gluten-velox-bundle-package-jdk8-arm64-${{ 
steps.date.outputs.date }}
+          path: package/
+      - name: rsync to apache nightly
+        uses: burnett01/[email protected]

Review Comment:
   the action does not support ARM so we need to use a separate upload job



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to