Skip to content

Commit

Permalink
CI: remove CentOS 7 runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Jul 28, 2024
1 parent 7197ff2 commit 961682c
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/build-and-test-rh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,38 +41,20 @@ jobs:
strategy:
fail-fast: false
matrix:
image: [ 'centos:7', 'quay.io/centos/centos:stream9', 'fedora:39', 'fedora:40']
image: [ 'quay.io/centos/centos:stream9', 'fedora:39', 'fedora:40']
env: [ {CC: gcc, CXX: g++}, {CC: clang, CXX: clang++} ]
shared: [ on, off ]
container: ${{ matrix.image }}
env: ${{ matrix.env }}
steps:
- name: Install packages CentOS 7
if: matrix.image == 'centos:7'
run: |
yum -y install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum -y install sudo git make wget gcc gcc-c++ clang
wget -nv https://github.com/Kitware/CMake/releases/download/v3.24.3/cmake-3.24.3-linux-x86_64.sh
chmod a+x cmake-3.24.3-linux-x86_64.sh
./cmake-3.24.3-linux-x86_64.sh --skip-license --exclude-subdir --prefix=/usr/local
- name: Install packages not CentOS 7
if: matrix.image != 'centos:7'
- name: Install packages
run: yum -y install sudo git gcc gcc-c++ make cmake clang

- name: Checkout
if: matrix.image != 'centos:7'
uses: actions/checkout@v4
with:
fetch-depth: 1

# CentOS 7 doesn't support node.js:20. To be removed once it is EOLed at June, 2024.
- name: Checkout centos:7
if: matrix.image == 'centos:7'
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Adjust environment
run: |
echo "SEXP_INSTALL_PATH=$PWD/install" >> $GITHUB_ENV
Expand All @@ -90,26 +72,13 @@ jobs:
- name: Install
run: cmake --install build

- name: Install xargs
if: matrix.image == 'fedora:35'
run: sudo yum -y install findutils

- name: Checkout shell test framework
if: matrix.image != 'centos:7'
uses: actions/checkout@v4
with:
repository: kward/shunit2
path: ${{github.workspace}}/tests/shunit2
fetch-depth: 1

- name: Checkout shell test framework centos7
if: matrix.image == 'centos:7'
uses: actions/checkout@v3
with:
repository: kward/shunit2
path: ${{github.workspace}}/tests/shunit2
fetch-depth: 1

- name: Run additional tests
shell: bash
run: tests/scripts/tests.sh

0 comments on commit 961682c

Please sign in to comment.