@ -51,8 +51,8 @@ EOF
MAKE = "make -j8"
MAKE = "make -j8"
# Install ruby 3.0.0 for rake-compiler
# Download ruby 3.0.0 sources outside of the cross-ruby.rake file, since the
# Download ruby 3.0.0 and 3.1.0 sources outside of the cross-ruby.rake file, since the
# latest rake-compiler/v1.1.1 cross-ruby.rake file requires tar.bz2 source
# latest rake-compiler/v1.1.1 cross-ruby.rake file requires tar.bz2 source
# files.
# files.
# TODO(apolcyn): remove this hack when tar.bz2 sources are available for ruby
# TODO(apolcyn): remove this hack when tar.bz2 sources are available for ruby
@ -60,6 +60,19 @@ MAKE="make -j8"
# https://stackoverflow.com/questions/65477613/rvm-where-is-ruby-3-0-0.
# https://stackoverflow.com/questions/65477613/rvm-where-is-ruby-3-0-0.
set +x # rvm commands are very verbose
set +x # rvm commands are very verbose
source ~/.rvm/scripts/rvm
source ~/.rvm/scripts/rvm
# Install ruby 3.1.0 for rake-compiler
echo "rvm use 3.1.0"
rvm use 3.1.0
set -x
RUBY_3_1_0_TAR = " ${ HOME } /.rake-compiler/sources/ruby-3.1.0.tar.gz "
mkdir -p " $( dirname $RUBY_3_1_0_TAR ) "
curl -L " https://ftp.ruby-lang.org/pub/ruby/3.1/ $( basename $RUBY_3_1_0_TAR ) " -o " $RUBY_3_1_0_TAR "
ccache -c
ruby --version | grep 'ruby 3.1.0'
tools/run_tests/helper_scripts/bundle_install_wrapper.sh
bundle exec rake -f " $CROSS_RUBY " cross-ruby VERSION = 3.1.0 HOST = x86_64-darwin11 MAKE = " $MAKE " SOURCE = " $RUBY_3_1_0_TAR "
echo "installed ruby 3.1.0 build targets"
# Install ruby 3.0.0 for rake-compiler
echo "rvm use 3.0.0"
echo "rvm use 3.0.0"
rvm use 3.0.0
rvm use 3.0.0
set -x
set -x