Changed to install googletest 1.8.0 for centos 7 instead of using 1.6.0 (#1600)

* Changed to install googletest 1.8.0 for centos 7 instead of using 1.6.0 that comes with the centos 7 image to avoid to use okay-release-1-6.el7.noarch.rpm that is causing an error for some reason.

* Fixed typo install_gtest tag for centos 7.
This commit is contained in:
Hong Chen 2023-10-26 10:19:28 -05:00 committed by GitHub
parent d2b699ce04
commit e44a95c6e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,13 +97,23 @@ jobs:
conf_pkg: |
yum -y install epel-release
yum -y update
yum -y install wget
os_deps: >-
libX11-devel
libXt-devel
swig3
install_gtest: |
yum install -y http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-6.el7.noarch.rpm
yum install -y gtest gtest-devel gmock gmock-devel
cd /tmp
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
tar xzvf release-1.8.0.tar.gz
cd /tmp/googletest-release-1.8.0/googletest
cmake .
make
make install
cd /tmp/googletest-release-1.8.0/googlemock
cmake .
make
make install
#-------- RHEL 8-based Only Dependencies ----------------
- cfg: { arch: rhel, arch_ver: 8 }
pkg_mgr: dnf