GHA: Add ruby-3.1 testing

This commit is contained in:
William S Fulton 2022-08-07 08:12:49 +01:00
commit 6436c9408a
2 changed files with 13 additions and 6 deletions

View file

@ -131,12 +131,16 @@ case "$SWIGLANG" in
source $HOME/.rvm/scripts/rvm
set -x
fi
if [[ "$VER" == "2.7" || "$VER" == "3.0" ]]; then
# Ruby 2.7+ support is currently only rvm master (30 Dec 2019)
$RETRY rvm get master
rvm reload
rvm list known
fi
case "$VER" in
2.7 | 3.0 | 3.1 )
# Ruby 2.7+ support is currently only rvm master (30 Dec 2019)
set +x
$RETRY rvm get master
rvm reload
rvm list known
set -x
;;
esac
if [[ "$VER" ]]; then
$RETRY rvm install $VER
fi