-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
source /pd_build/buildconfig | ||
|
||
RVM_ID=$(basename "$0" | sed 's/.sh$//') | ||
|
||
header "Installing $RVM_ID" | ||
|
||
run mkdir -p "/build_cache/${ARCH}" | ||
if [[ -e "/build_cache/${ARCH}/${RVM_ID}.tar.bz2" ]]; then | ||
# use cached ruby if present | ||
run /usr/local/rvm/bin/rvm mount "/build_cache/${ARCH}/${RVM_ID}.tar.bz2" | ||
else | ||
# otherwise build one | ||
run minimal_apt_get_install rustc # For compiling Ruby with YJIT | ||
MAKEFLAGS=-j$(nproc) run /usr/local/rvm/bin/rvm install $RVM_ID --disable-cache || ( cat /usr/local/rvm/log/*${RVM_ID}*/*.log && false ) | ||
run cd "/build_cache/${ARCH}" | ||
run /usr/local/rvm/bin/rvm prepare "${RVM_ID}" | ||
run cd / | ||
fi | ||
|
||
run /usr/local/rvm/bin/rvm-exec $RVM_ID@global gem install $DEFAULT_RUBY_GEMS --no-document | ||
# Make passenger_system_ruby work. | ||
run create_rvm_wrapper_script ruby3.3 $RVM_ID ruby | ||
run /pd_build/ruby_support/install_ruby_utils.sh | ||
run /pd_build/ruby_support/finalize.sh |