Skip to content

Commit

Permalink
release: update gcc version
Browse files Browse the repository at this point in the history
Signed-off-by: zhuangbowei.zbw <[email protected]>
  • Loading branch information
WaberZhuang committed Aug 7, 2024
1 parent 2980bf0 commit bc9f5b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,15 @@ elif [[ ${OS} =~ "centos" ]]; then
export PATH="/opt/rh/devtoolset-7/root/usr/bin:$PATH"
PACKAGE_RELEASE="-DPACKAGE_RELEASE=${RELEASE_NO}.el7"
COMPILER="-DCMAKE_C_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/g++"
/opt/rh/devtoolset-7/root/usr/bin/gcc --version
/opt/rh/devtoolset-7/root/usr/bin/g++ --version
elif [[ ${OS} == "centos:8" ]]; then
rm -rf /etc/yum.repos.d/* && curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum install -y gcc gcc-c++

yum install -y gcc-toolset-9-gcc gcc-toolset-9-gcc-c++
COMPILER="-DCMAKE_C_COMPILER=/opt/rh/gcc-toolset-9/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/gcc-toolset-9/root/usr/bin/g++"
/opt/rh/gcc-toolset-9/root/usr/bin/gcc --version
/opt/rh/gcc-toolset-9/root/usr/bin/g++ --version

PACKAGE_RELEASE="-DPACKAGE_RELEASE=${RELEASE_NO}.el8"
fi
Expand Down

0 comments on commit bc9f5b9

Please sign in to comment.