Skip to content

Commit

Permalink
ci: add containers for Alma, Oracle, and Rocky Linux
Browse files Browse the repository at this point in the history
Expand our testing platforms with these distributions. They mostly use
the same package names as Fedora with a handful of exceptions.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
  • Loading branch information
vincentkfu committed Aug 27, 2024
1 parent 70c96f7 commit 2a26258
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 25 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
container:
- {os: 'debian', dh: 'debian', ver: 'bookworm', target_arch: 'x86_64'}
- {os: 'fedora', dh: 'fedora', ver: '40', target_arch: 'x86_64'}
- {os: 'alma', dh: 'almalinux', ver: '9', target_arch: 'x86_64'}
- {os: 'oracle', dh: 'oraclelinux', ver: '9', target_arch: 'x86_64'}
- {os: 'rocky', dh: 'rockylinux', ver: '9', target_arch: 'x86_64'}
- {os: 'ubuntu', dh: 'ubuntu', ver: 'noble', target_arch: 'i686'}
- {os: 'ubuntu', dh: 'ubuntu', ver: 'noble', target_arch: 'x86_64'}

Expand Down
2 changes: 1 addition & 1 deletion ci/actions-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ main() {
;;
esac
;;&
*/linux | */ubuntu | */debian | */fedora)
*/linux | */ubuntu | */debian | */fedora | */alma | */oracle | */rocky)
case "${CI_TARGET_ARCH}" in
"i686")
extra_cflags="${extra_cflags} -m32"
Expand Down
99 changes: 75 additions & 24 deletions ci/actions-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,36 +102,87 @@ DPKGCFG
fi
}

# Fedora and related distributions
install_fedora() {
dnf install -y \
bison-devel \
cmake \
cunit-devel \
flex-devel \
isa-l-devel \
kernel-devel \
libaio-devel \
libgfapi-devel \
libibverbs-devel \
libiscsi-devel \
libnbd-devel \
libnfs-devel \
libpmem-devel \
libpmem2-devel \
librbd-devel \
numactl-devel \
protobuf-c-devel \
python3-scipy \
python3-sphinx \
python3-statsmodels \
unzip \
valgrind-devel \
wget \
pkgs=(
bison-devel
git
cmake
flex-devel
gperftools
isa-l-devel
kernel-devel
libaio-devel
libibverbs-devel
libiscsi-devel
libnbd-devel
libnfs-devel
libpmem-devel
libpmem2-devel
librbd-devel
numactl-devel
protobuf-c-devel
python3-scipy
python3-sphinx
sudo
unzip
valgrind-devel
wget
)

case "${CI_TARGET_OS}" in
"fedora")
pkgs+=(
cunit-devel
libgfapi-devel
python3-statsmodels
)
;;
"rocky" | "alma" | "oracle")
pkgs+=(
CUnit-devel
python-pip
)
;;&
"rocky" | "alma")
pkgs+=(
glusterfs-api-devel
)
;;
esac
dnf install -y "${pkgs[@]}"

# install librpma from sources
ci/actions-install-librpma.sh
}

install_rhel_clone() {
dnf install -y epel-release
install_fedora

# I could not find a python3-statsmodels package in the repos
pip3 install statsmodels
}

install_oracle() {
dnf config-manager --set-enabled ol9_codeready_builder
install_rhel_clone
}

install_alma() {
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled crb
dnf install -y almalinux-release-devel
install_rhel_clone
}

install_rocky() {
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled crb
dnf config-manager --set-enabled devel
install_rhel_clone
}

install_debian() {
install_ubuntu
}
Expand Down

0 comments on commit 2a26258

Please sign in to comment.