Skip to content

Commit

Permalink
Updated GitHub actions to use glibc 2.28 instead of glibc 2.17 for bu…
Browse files Browse the repository at this point in the history
…ilding the AppImages

   Distro    |  kernel | glibc
     ---     |   ---   |  ---
  CentOS 7   |   3.10  |  2.17
  CentOS 8   |   4.18  |  2.28
  Debian 9   |  4.9.30 |  2.24
  Debian 10  | 4.9.118 |  2.28
  Debian 11  | 5.10.84 |  2.31
   RHEL 7    |   3.10  |  2.17
   RHEL 8    |   4.18  |  2.28
Ubuntu 18.04 |   4.15  |  2.27
Ubuntu 20.04 |   5.4   |  2.31
  • Loading branch information
scopplestone committed Jun 6, 2024
1 parent b9041e2 commit 60c4785
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/cmake-ninja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ jobs:
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

# Use centos7
# Use centos8
container:
image: centos:7
image: centos:8
options: --privileged

steps:

- name: Install GIT
shell: bash
run: |
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum -y install https://packages.endpointdev.com/rhel/8/main/x86_64/endpoint-repo.noarch.rpm
yum -y install git
git --version
Expand All @@ -45,7 +48,9 @@ jobs:
rpm -U --quiet p7zip-16.02-20.el7.x86_64.rpm
rpm -U --quiet p7zip-plugins-16.02-20.el7.x86_64.rpm
yum install -y epel-release
yum install -y make libasan gcc-gfortran gcc-c++ unzip openblas-devel lapack-devel zlib-devel tree fuse-sshfs fuse-libs file openmpi-devel wget python3
yum install -y 'dnf-command(config-manager)'
yum config-manager --set-enabled powertools
yum install -y make libasan gcc-gfortran gcc-c++ unzip openblas-devel lapack-devel zlib-devel tree fuse-sshfs fuse-libs file openmpi-devel wget python3 diffutils
groupadd fuse
user="$(whoami)"
usermod -a -G fuse "$user"
Expand All @@ -58,13 +63,13 @@ jobs:
- name: Install GNU GCC 8
shell: bash
run: |
yum install -y centos-release-scl
yum install -y devtoolset-8-gcc*
source /opt/rh/devtoolset-8/enable
scl enable devtoolset-8 bash
which gcc
echo 'source /opt/rh/devtoolset-8/enable' >> ~/.bashrc
echo 'scl enable devtoolset-8 bash' >> ~/.bashrc
#yum install -y centos-release-scl
#yum install -y devtoolset-8-gcc*
#source /opt/rh/devtoolset-8/enable
#scl enable devtoolset-8 bash
#which gcc
#echo 'source /opt/rh/devtoolset-8/enable' >> ~/.bashrc
#echo 'scl enable devtoolset-8 bash' >> ~/.bashrc
#GCC_DIR='/opt/rh/devtoolset-8/root/usr'
GCC_DIR=$(dirname $(dirname $(which gcc)))
echo 'export PATH="'${GCC_DIR}'/bin:$PATH"' >> ~/.bashrc
Expand Down

0 comments on commit 60c4785

Please sign in to comment.