summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-08-07 08:12:49 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-08-07 08:12:49 +0100
commit6436c9408a08559372789d01731184a13762d4f7 (patch)
tree9d5bd76b07cad2f49a5b1eef5738f7f30051908e /Tools
parentfa9c7a719789f94ba14858182c2a512c8a3ba3aa (diff)
downloadswig-6436c9408a08559372789d01731184a13762d4f7.tar.gz
GHA: Add ruby-3.1 testing
Diffstat (limited to 'Tools')
-rw-r--r--Tools/CI-linux-install.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/Tools/CI-linux-install.sh b/Tools/CI-linux-install.sh
index fb3e57de9..456f5bc42 100644
--- a/Tools/CI-linux-install.sh
+++ b/Tools/CI-linux-install.sh
@@ -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