Skip to content

Commit 6436c94

Browse files
committed
GHA: Add ruby-3.1 testing
1 parent fa9c7a7 commit 6436c94

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ jobs:
176176
- SWIGLANG: ruby
177177
VER: '3.0'
178178
CPPSTD: c++11
179+
- SWIGLANG: ruby
180+
VER: '3.1'
181+
CPPSTD: c++11
179182
- SWIGLANG: scilab
180183
VER: '5.5.2'
181184
- SWIGLANG: scilab

Tools/CI-linux-install.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,16 @@ case "$SWIGLANG" in
131131
source $HOME/.rvm/scripts/rvm
132132
set -x
133133
fi
134-
if [[ "$VER" == "2.7" || "$VER" == "3.0" ]]; then
135-
# Ruby 2.7+ support is currently only rvm master (30 Dec 2019)
136-
$RETRY rvm get master
137-
rvm reload
138-
rvm list known
139-
fi
134+
case "$VER" in
135+
2.7 | 3.0 | 3.1 )
136+
# Ruby 2.7+ support is currently only rvm master (30 Dec 2019)
137+
set +x
138+
$RETRY rvm get master
139+
rvm reload
140+
rvm list known
141+
set -x
142+
;;
143+
esac
140144
if [[ "$VER" ]]; then
141145
$RETRY rvm install $VER
142146
fi

0 commit comments

Comments
 (0)