From dc3e22bd7be73fff9c77fd492204f7ca67198de0 Mon Sep 17 00:00:00 2001 From: Rong Ma Date: Mon, 1 Jul 2024 20:53:27 +0800 Subject: [PATCH] [CI] Fix centos7 CI build error (#6298) --- .github/workflows/velox_docker.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/velox_docker.yml b/.github/workflows/velox_docker.yml index 098b2a2d57eb..ded2032f4241 100644 --- a/.github/workflows/velox_docker.yml +++ b/.github/workflows/velox_docker.yml @@ -192,10 +192,11 @@ jobs: name: velox-arrow-jar-centos-7-${{github.sha}} path: /root/.m2/repository/org/apache/arrow/ - name: Update mirror list - if: matrix.os == 'centos:8' run: | - sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* || true - sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* || true + if [ "${{ matrix.os }}" = "centos:7" ] || [ "${{ matrix.os }}" = "centos:8" ]; then + sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* || true + sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* || true + fi - name: Setup java and maven run: | if [ "${{ matrix.java }}" = "java-17" ]; then