From: Nick Porter Date: Tue, 30 May 2023 15:25:39 +0000 (+0100) Subject: Deprecate CentOS 7 and add Rocky 9 to full RPM build tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d26870a757ae564d84fc1b22e3bb96b27f709355;p=thirdparty%2Ffreeradius-server.git Deprecate CentOS 7 and add Rocky 9 to full RPM build tests CentOS 7 doesn't have Python 3.8 which is now required for rlm_python, and is EoL in June 2024 --- diff --git a/.github/workflows/ci-rpm.yml b/.github/workflows/ci-rpm.yml index ca7792975a9..a52f5d9ef68 100644 --- a/.github/workflows/ci-rpm.yml +++ b/.github/workflows/ci-rpm.yml @@ -32,9 +32,9 @@ jobs: M=$(cat < /etc/yum.repos.d/ltb-project.repo echo 'name=LTB project packages' >> /etc/yum.repos.d/ltb-project.repo @@ -85,16 +86,20 @@ jobs: rpm --import https://www.ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project yum install -y epel-release - - name: Enable PowerTools on CentOS 8 - if: ${{ matrix.env.NAME == 'stream-8' || matrix.env.NAME == 'rocky-8' }} + - name: Enable PowerTools / CRB run: | yum install -y yum-utils dnf-plugins-core yum config-manager --enable PowerTools || : yum config-manager --enable powertools || : + yum config-manager --enable crb || : + + - name: Enable EPEL for Rocky Linux 9 + if: ${{ matrix.env.NAME == 'rocky-9' }} + run: | + yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm # For pkill - - name: Enable procps-ng on CentOS 8 - if: ${{ matrix.env.NAME == 'stream-8' || matrix.env.NAME == 'rocky-8' }} + - name: Enable procps-ng run: | yum install -y procps-ng @@ -110,34 +115,7 @@ jobs: - name: Install common tools run: | - yum install -y rpm-build openssl make gcc perl - - - name: Install SCL compiler on CentOS 7 - if: ${{ matrix.env.NAME == 'centos-7' }} - run: | - yum install -y centos-release-scl - yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-make - rm -f /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo - rm -f /etc/yum.repos.d/CentOS-SCLo-scl.repo - - # Required so that the checkout action uses git protocol rather than the GitHub REST API. - # make rpm requires the FR directory to be a git repository. - - # Centos 7 installs an extremely old version of Git. This version of git's archive - # command is missing --add-file and --add-virtual-file so cannot be used for creating - # tarballs. Here we install a more modern version from a 3rd party repo listed on the - # git website. - - name: Install recent git for CentOS 7 - if: ${{ matrix.env.NAME == 'centos-7' }} - run: | - yum remove git - rpm -U https://repo.ius.io/ius-release-el7.rpm - yum install -y git2*-core - - - name: Install distro git for CentOS > 7 - if: ${{ matrix.env.NAME != 'centos-7' }} - run: | - yum install -y git-core + yum install -y rpm-build openssl make gcc perl git-core - uses: actions/checkout@v3 with: @@ -239,6 +217,7 @@ jobs: - name: Extra repos + if: ${{ matrix.env.NAME == 'stream-8' || matrix.env.NAME == 'rocky-8' }} run: | echo '[ltb-project]' > /etc/yum.repos.d/ltb-project.repo echo 'name=LTB project packages' >> /etc/yum.repos.d/ltb-project.repo @@ -249,16 +228,20 @@ jobs: rpm --import https://www.ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project yum install -y epel-release - - name: Enable PowerTools on Centos 8 - if: ${{ matrix.env.NAME == 'stream-8' || matrix.env.NAME == 'rocky-8' }} + - name: Enable PowerTools / CRB run: | yum install -y yum-utils dnf-plugins-core yum config-manager --enable PowerTools || : yum config-manager --enable powertools || : + yum config-manager --enable crb || : + + - name: Enable EPEL for Rocky Linux 9 + if: ${{ matrix.env.NAME == 'rocky-9' }} + run: | + yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm # For pkill - - name: Enable procps-ng on Centos 8 - if: ${{ matrix.env.NAME == 'stream-8' || matrix.env.NAME == 'rocky-8' }} + - name: Enable procps-ng run: | yum install -y procps-ng