From d7b76f909a9ce4f0102c606459aa23439865bd38 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 9 Nov 2020 13:07:33 +0100 Subject: [PATCH] Add Ruby 3.0.0-preview1 * Fixes https://github.com/ruby/setup-ruby/issues/100 --- README.md | 4 ++++ dist/index.js | 1 + ruby-builder-versions.js | 1 + 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index c163ebd..8b17367 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby: `ruby-debug` is the same as `ruby-head` but with assertions enabled (`-DRUBY_DEBUG=1`). On Windows, `mingw` and `mswin` are `ruby-head` builds using the MSYS2/MinGW and the MSVC toolchains respectively. +Preview and RC versions of Ruby might be available too on Ubuntu and macOS (not on Windows). +However, it is recommended to test against `ruby-head` rather than previews, +as it provides more useful feedback for the Ruby core team and for upcoming changes. + Only versions published by [RubyInstaller](https://rubyinstaller.org/downloads/archives/) are available on Windows. Due to that, Ruby 2.2 resolves to 2.2.6 on Windows and 2.2.10 on other platforms. And Ruby 2.3 on Windows only has builds for 2.3.0, 2.3.1 and 2.3.3. diff --git a/dist/index.js b/dist/index.js index cbaec87..6557dae 100644 --- a/dist/index.js +++ b/dist/index.js @@ -44510,6 +44510,7 @@ function getVersions(platform) { "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7", "2.5.8", "2.6.0", "2.6.1", "2.6.2", "2.6.3", "2.6.4", "2.6.5", "2.6.6", "2.7.0", "2.7.1", "2.7.2", + "3.0.0-preview1", "head", "debug", ], "jruby": [ diff --git a/ruby-builder-versions.js b/ruby-builder-versions.js index c819d6c..4284cb3 100644 --- a/ruby-builder-versions.js +++ b/ruby-builder-versions.js @@ -8,6 +8,7 @@ export function getVersions(platform) { "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7", "2.5.8", "2.6.0", "2.6.1", "2.6.2", "2.6.3", "2.6.4", "2.6.5", "2.6.6", "2.7.0", "2.7.1", "2.7.2", + "3.0.0-preview1", "head", "debug", ], "jruby": [