Home

Awesome

MSYS2-MINGW packages for RubyInstaller2

CI build status

This repository contains package scripts for MinGW-w64 targets to build under MSYS2. The main intension of this repository is to provide binary ruby packages for RubyInstaller2 in several versions.

Packages are built on Github Actions when the corresponding directory has changed in the last commit. They are subsequently signed and uploaded to this github release. In addition the latest ruby-head snapshot is build and uploaded on a daily base. The github release also contains pacman database files and is usable as a pacman repository.

Install packages

Packages from this repository can be downloaded here: https://github.com/oneclick/rubyinstaller2-packages/releases/tag/ci.ri2

It is also possible to add the RubyInstaller repository as a pacman repository in your MSYS2 installation. Execute this within a MSYS2 shell to download and trust the public signatur key and to add the new package source:

pacman --noconfirm --sync --needed pactoys
pacman-key --recv-keys BE8BF1C5
pacman-key --lsign-key BE8BF1C5
repman add ci.ri2 "https://github.com/oneclick/rubyinstaller2-packages/releases/download/ci.ri2"

You can then install or update MSYS2-MINGW ruby like so:

pacman -Sy mingw-w64-ucrt-x86_64-ruby31

Build packages for yourself

Second option is to clone git repository to your machine and build it for yourself. Assuming you have a properly installed MSYS2 environment and build tools, you can build any package using the following command. Replace ${package-name} with the package name in question:

   cd mingw-w64-${package-name}
   MINGW_ARCH=ucrt64 makepkg-mingw -sLf

Or in a CMD shell:

   cd mingw-w64-${package-name}
   ridk enable
   set MINGW_ARCH=ucrt64
   sh -c "makepkg-mingw -sLf"

After that you can install the freshly built package(s) with the following command:

   pacman -U mingw-w64-ucrt-x86_64-${package-name}*.pkg.tar.zst