From fcfa6fec01bc7afa54e1506f434047592f9362c0 Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Mon, 15 Jul 2024 11:45:54 +0800 Subject: [PATCH] Fix build --- .github/workflows/velox_weekly.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/velox_weekly.yml b/.github/workflows/velox_weekly.yml index 26db5cad0d34..ab7f347a28e2 100644 --- a/.github/workflows/velox_weekly.yml +++ b/.github/workflows/velox_weekly.yml @@ -48,6 +48,7 @@ jobs: yum update -y yum install -y epel-release sudo dnf if [ "${{ matrix.os }}" = "centos:7" ]; then + yum install -y centos-release-scl rm /etc/yum.repos.d/CentOS-SCLo-scl.repo -f sed -i \ -e 's/^mirrorlist/#mirrorlist/' \ @@ -55,9 +56,7 @@ jobs: -e 's/mirror\.centos\.org/vault.centos.org/' \ /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo fi - yum install -y java-1.8.0-openjdk-devel patch wget git curl gcc-c++ make openssl-devel - wget https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3.tar.gz - tar -zxvf cmake-3.28.3.tar.gz && cd cmake-3.28.3 && ./configure && make && make install + yum install -y java-1.8.0-openjdk-devel patch wget git make export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk && \ 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 && \ @@ -82,9 +81,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 maven wget git curl #python3-pip ninja-build + apt-get update && apt-get install -y sudo maven wget git sudo apt-get install -y openjdk-8-jdk - #pip3 install cmake==3.28.3 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 export DEBIAN_FRONTEND=noninteractive cd $GITHUB_WORKSPACE/ && ./dev/package.sh