File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
macos/runtime_setup_stages Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,16 @@ ROOTDIR=$(dirname "$0")
4
4
ROOTDIR=$( cd " $ROOTDIR /../.." && pwd)
5
5
source " $ROOTDIR /shared/lib/library.sh"
6
6
7
- RUBY_VERSIONS=( $( cat " $ROOTDIR /shared/definitions/ruby_versions" ) )
7
+ read -ra RUBY_VERSIONS < " $ROOTDIR /shared/definitions/ruby_versions"
8
8
LAST_RUBY_VERSION=${RUBY_VERSIONS[${#RUBY_VERSIONS[@]} - 1]}
9
9
10
10
if [[ -e /usr/local/rvm/bin/rvm-exec ]]; then
11
11
RVM_EXEC=/usr/local/rvm/bin/rvm-exec
12
12
elif [[ -e $HOME /.rvm/bin/rvm-exec ]]; then
13
13
RVM_EXEC=$HOME /.rvm/bin/rvm-exec
14
+ elif [ " ${GITHUB_ACTIONS:- false} " = ' true' ]; then
15
+ \c url -sSL https://get.rvm.io | bash
16
+ RVM_EXEC=$HOME /.rvm/bin/rvm-exec
14
17
else
15
18
echo " *** ERROR: you must have RVM installed"
16
19
exit 1
@@ -27,6 +30,8 @@ ALL_RUBIES_OK=true
27
30
for RUBY_VERSION in " ${RUBY_VERSIONS[@]} " ; do
28
31
if run_ruby " $RUBY_VERSION " ruby -v & > /dev/null; then
29
32
echo " Ruby $RUBY_VERSION : ok"
33
+ elif [ " ${GITHUB_ACTIONS:- false} " = ' true' ]; then
34
+ rvm install " ruby-$RUBY_VERSION "
30
35
else
31
36
echo " Ruby $RUBY_VERSION : NOT INSTALLED! Please install it!"
32
37
ALL_RUBIES_OK=false
You can’t perform that action at this time.
0 commit comments