Tools to build versions of Ruby that can be installed and run from anywhere on the filesystem.
First, install rv, and then run rv ruby install.
- Run
bin/setupto tap your checkout of this repo asspinel-coop/rv-ruby. - Run e.g.
brew rv-package --no-uninstall-deps --debug --verbose rv-ruby@3.4.5to build Ruby 3.4.5 locally with YJIT.
An automated release workflow is available to use. Dispatch the workflow and all steps of building, tagging and uploading should be handled automatically.
Manual steps are documented below.
Run brew portable-package ruby. For macOS, this should ideally be inside an OS X 10.11 VM (so it is compatible with all working Homebrew macOS versions).
Copy the bottle bottle*.tar.gz and bottle*.json files into a directory on your local machine.
Upload these files to GitHub Packages with:
brew pr-upload --upload-only --root-url=https://ghcr.io/v2/spinel-coop/rv-rubyAnd to GitHub releases:
brew pr-upload --upload-only --root-url=https://github.com/spinel-coop/rv-ruby/releases/download/$VERSIONwhere $VERSION is the new package version.
Thanks to the Homebrew team for the portable-ruby code we used as a starting point.
Code is under the BSD 2-Clause "Simplified" License.