Skip to content

Commit

Permalink
yum: Use dnf module for Ruby 3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
  • Loading branch information
cosmo0920 committed Mar 27, 2023
1 parent b94fd7c commit b529a2b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ci/yum-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ distribution=$(cat /etc/system-release-cpe | awk '{print substr($0, index($1, "o
version=$(cat /etc/system-release-cpe | awk '{print substr($0, index($1, "o"))}' | cut -d: -f4)
USE_SCL=0
USE_AMZN_EXT=0
USE_DNF_MODULE=0

case ${distribution} in
amazon)
Expand All @@ -35,7 +36,7 @@ case ${distribution} in
case ${version} in
8)
DNF="dnf --enablerepo=powertools"
USE_SCL=1
USE_DNF_MODULE=1
;;
9)
DNF="dnf --enablerepo=crb"
Expand All @@ -62,6 +63,13 @@ if [ $USE_SCL -eq 1 ]; then
rh-ruby26-rubygem-rake \
rpm-build \
cmake3
elif [ $USE_DNF_MODULE -eq 1 ]; then
dnf update -y && \
dnf module install -y ruby:3.0 && \
dnf install -y ruby-devel \
rubygems \
rpm-build \
cmake
elif [ $USE_AMZN_EXT -eq 1 ]; then
yum update -y && \
yum install -y yum-utils && \
Expand Down

0 comments on commit b529a2b

Please sign in to comment.