From 46f287e4d2941b7d6adf10c6da25fc91408d05a7 Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Fri, 12 Jul 2024 14:59:20 +0800 Subject: [PATCH] Fix failure --- .github/workflows/velox_weekly.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/velox_weekly.yml b/.github/workflows/velox_weekly.yml index 7b481886cff9..68ef43605e76 100644 --- a/.github/workflows/velox_weekly.yml +++ b/.github/workflows/velox_weekly.yml @@ -52,12 +52,19 @@ jobs: source /opt/rh/gcc-toolset-9/enable || exit 1 else yum install -y centos-release-scl + rm /etc/yum.repos.d/CentOS-SCLo-scl.repo -f + sed -i \ + -e 's/^mirrorlist/#mirrorlist/' \ + -e 's/^#baseurl/baseurl/' \ + -e 's/mirror\.centos\.org/vault.centos.org/' \ + /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo yum install -y devtoolset-9 source /opt/rh/devtoolset-9/enable || exit 1 fi - yum install -y java-1.8.0-openjdk-devel patch wget git curl && \ + yum install -y java-1.8.0-openjdk-devel patch wget git curl python3-devel python3-pip + pip3 install scikit-build && pip3 install cmake==3.28.3 export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk && \ - export PATH=$JAVA_HOME/bin:$PATH && \ + export PATH=$JAVA_HOME/bin:$PATH wget --no-check-certificate https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz && \ tar -xvf apache-maven-3.8.8-bin.tar.gz && \ mv apache-maven-3.8.8 /usr/lib/maven && \ @@ -79,6 +86,8 @@ jobs: run: | # To avoid the prompt for region selection during installing tzdata. export DEBIAN_FRONTEND="noninteractive" - apt-get update && apt-get install -y sudo openjdk-8-jdk maven wget git curl + apt-get update && apt-get install -y sudo maven wget git curl python3-pip ninja-build + sudo apt-get install -y openjdk-8-jdk + pip3 install cmake==3.28.3 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 cd $GITHUB_WORKSPACE/ && ./dev/package.sh