Add Ruby 3.2.0 images and fix Rust installation
What does this MR do and why?
This will be used to see how much effort it would be to jump to Ruby 3.2.0 and to see what performance improvements we might see with YJIT.
This also fixes some build issues with Rust:
-
We need to install Rust before Ruby in order to use YJIT.
-
rustcwasn't actually installed since theINSTALL_RUST_VERSIONargument wasn't set. -
rustupwasn't running properly since theCARGO_HOMEandRUSTUP_HOMEweren't being exported and set by default. We now use the technique described in https://github.com/rust-lang/rustup/issues/1085 to create a wrapper and link all the binaries in /opt/rust/bin and link them to /usr/local/bin. -
rustc versionis not a valid command.rustc --versionis valid.
Checklist
-
(If applicable) Add patches if required for upgrading Ruby version in https://gitlab.com/gitlab-org/gitlab-build-images/-/tree/master/patches/ruby.
Edited by Stan Hu