From 658e694bee04fc1055e805bfc65d19da0ccd495e Mon Sep 17 00:00:00 2001 From: Ionizing Date: Tue, 9 Jul 2024 01:44:53 +0800 Subject: [PATCH] [release-binaries.yml] update --- .github/workflows/release-binaries.yml | 28 ++++++++++++-------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index 7688faa..7ef4f5a 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -50,21 +50,19 @@ jobs: -e 's|^#baseurl=http://mirror.centos.org/centos|baseurl=https://vault.centos.org/centos|g' \ /etc/yum.repos.d/CentOS-Base.repo yum makecache - yum install -y gcc g++ which wget centos-release-scl - sed -i.bak \ - -e 's|^mirrorlist=|#mirrorlist=|g' \ - -e 's|^#baseurl=http://mirror.centos.org/centos|baseurl=https://vault.centos.org/centos|g' \ - /etc/yum.repos.d/CentOS-SCLo-scl.repo - yum makecache - yum install -y devtoolset-9 - source /opt/rh/devtoolset-9/enable - wget https://cmake.org/files/v3.20/cmake-3.20.3.tar.gz - tar zxvf cmake-3.* - cd cmake-3.* - ./bootstrap --prefix=/usr/local - make -j - make install - cd .. + yum install -y gcc g++ which wget + yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm + yum install -y cmake3 + alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake 10 \ + --slave /usr/local/bin/ctest ctest /usr/bin/ctest \ + --slave /usr/local/bin/cpack cpack /usr/bin/cpack \ + --slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake \ + --family cmake + alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \ + --slave /usr/local/bin/ctest ctest /usr/bin/ctest3 \ + --slave /usr/local/bin/cpack cpack /usr/bin/cpack3 \ + --slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \ + --family cmake curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --target x86_64-unknown-linux-gnu echo $HOME/.cargo/bin >> $GITHUB_PATH source $HOME/.cargo/env