Skip to content

fix

fix #256

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Build eBay bundle package
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
M2_REPOSITORY: '/root/.m2/repository/'
on:
push:
branches:
- 'ebay-build**'
tags:
- 'ebay-build**'
jobs:
build-native-lib:
runs-on: ubuntu-22.04
env:
OAUTH_KEY: ${{ secrets.OAUTH_KEY }}
steps:
- uses: actions/checkout@v4
- name: Build Gluten velox third party
run: |
docker run -v $GITHUB_WORKSPACE:/work -w /work apache/gluten:vcpkg-centos-7 bash -c "
df -a
cd /work
bash dev/ci-velox-buildstatic-centos-7.sh
mkdir -p /work/.m2/repository/org/apache/arrow/
cp -r $M2_REPOSITORY/org/apache/arrow arrow-package
"
- name: Upload native libs
uses: actions/upload-artifact@v4
with:
path: ./cpp/build/releases/
name: velox-native-lib-${{github.sha}}
retention-days: 1
if-no-files-found: error
- name: Upload Artifact Arrow Jar
uses: actions/upload-artifact@v4
with:
path: ./arrow-package
name: velox-arrow-jar-centos-7-${{github.sha}}
retention-days: 1
if-no-files-found: error
build-bundle-package-centos8:
needs: build-native-lib
runs-on: ubuntu-22.04
env:
OAUTH_KEY: ${{ secrets.OAUTH_KEY }}
container: centos:8
steps:
- uses: actions/checkout@v1
with:
repository: wangyum/packages
ref: master
token: ${{ secrets.EBAY_TOKEN }}
- name: Install packages to $M2_REPOSITORY
run: |
mkdir -p $M2_REPOSITORY
rm -rf $M2_REPOSITORY/io && rm -rf $M2_REPOSITORY/org
mv ../packages/* $M2_REPOSITORY
cd $M2_REPOSITORY && find . -name "_*.repositories" | xargs rm -rf # Fix Could not find artifact io.ebay.rheos ...
- uses: actions/checkout@v2
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
name: velox-native-lib-${{github.sha}}
path: ./cpp/build/releases
- name: Download All Arrow Jar Artifacts
uses: actions/download-artifact@v4
with:
name: velox-arrow-jar-centos-7-${{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 && \
wget https://dlcdn.apache.org/maven/maven-3/3.8.9/binaries/apache-maven-3.8.9-bin.tar.gz && \
tar -xvf apache-maven-3.8.9-bin.tar.gz && \
mv apache-maven-3.8.9 /usr/lib/maven
- uses: actions/checkout@v1
with:
repository: wangyum/ebay-spark
ref: gluten-build
token: ${{ secrets.EBAY_TOKEN }}
- name: Install ebay-spark to $M2_REPOSITORY
run: |
cd ../ebay-spark && build/mvn clean install -Dhadoop.version=3.3.3.1.0.39 -DskipTests=true -Dmaven.javadoc.skip=true
- name: Build for eBay Spark 3.5
run: |
cd $GITHUB_WORKSPACE/ && \
export MAVEN_HOME=/usr/lib/maven && \
export PATH=${PATH}:${MAVEN_HOME}/bin && \
mvn clean install -Pspark-3.5 -Dhadoop.version=3.3.3.1.0.39 -Pbackends-velox -Pceleborn -Piceberg -Pdelta -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.scaladoc.skip=true -Dmaven.source.skip -Dcyclonedx.skip=true
ls -lh package/target/
- name: Upload bundle package
uses: actions/upload-artifact@v4
with:
name: gluten-velox-bundle-package
path: package/target/gluten-velox-bundle-*.jar
retention-days: 3
if-no-files-found: error
- name: Install ebay-spark to $M2_REPOSITORY with scala 2.13
run: |
cd ../ebay-spark && ./dev/change-scala-version.sh 2.13 && build/mvn clean install -Pscala-2.13 -Dhadoop.version=3.3.3.1.0.39 -DskipTests=true -Dmaven.javadoc.skip=true
- name: Build for ebay Spark 3.5 with scala 2.13
run: |
cd $GITHUB_WORKSPACE/ && \
export MAVEN_HOME=/usr/lib/maven && \
export PATH=${PATH}:${MAVEN_HOME}/bin && \
export SPARK_SCALA_VERSION=2.13 && \
mvn clean install -Pspark-3.5 -Pscala-2.13 -Dhadoop.version=3.3.3.1.0.39 -Pbackends-velox -Pceleborn -Piceberg -Pdelta -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.scaladoc.skip=true -Dmaven.source.skip -Dcyclonedx.skip=true
ls -lh package/target/
md5sum package/target/gluten-velox-bundle-spark3.5*
- name: Upload bundle package with scala 2.13
uses: actions/upload-artifact@v4
with:
name: gluten-velox-bundle-package-scala2.13
path: package/target/gluten-velox-bundle-*.jar
retention-days: 3
if-no-files-found: error