Benoit Daloze
d01c52ad8b
Add a self-hosted input to force considering the current runner as self-hosted
...
* Since checking for self-hosted is based on guessing as there is
no proper predicate for it in GitHub Actions (AFAIK).
2023-03-03 18:01:46 +01:00
Benoit Daloze
377a94bc68
Consider a different $RUNNER_TOOL_CACHE than the default as a self-hosted runner
...
* Fixes https://github.com/ruby/setup-ruby/issues/242
2023-03-03 18:01:46 +01:00
Benoit Daloze
66dc012cc3
Detect self-hosted runners not matching a GitHub-hosted runner image
...
* And give instructions for that case.
* Get the OS and OS version ourselves since some users set ImageOS incorrectly.
* This partially reverts commit ad1ebae995 .
2023-03-03 16:33:57 +01:00
Hiroshi SHIBATA
92aece5fc9
Also removed deprecated ubuntu-18.04
2023-02-27 19:56:46 +01:00
Hiroshi SHIBATA
db791aad7b
Removed macos-10.15 because it will be removed at 2023-03-31
2023-02-27 19:56:46 +01:00
Benoit Daloze
bc4e585e26
Don't show timing on error for clearer error output
2023-02-11 13:48:39 +01:00
Benoit Daloze
2cf593d66b
Don't group bundle install output
...
* So any error from Bundler is immediately shown.
* Some users do not realize they should expand the group apparently.
2023-02-11 13:45:25 +01:00
Benoit Daloze
09c10210cc
Implement targetRubyVersion for TruffleRuby
...
* Fixes #433
2022-12-30 15:55:07 +01:00
Piotr Murach
03b78bdda2
Fix automatic bundler installation on JRuby 9.2
2022-12-25 20:06:54 +01:00
Benoit Daloze
d5ee2364f0
Ensure Bundler 2.2+ is used for all Rubies which support Bundler 2 (Ruby >= 2.3)
2022-07-29 18:16:42 +02:00
Benoit Daloze
e8f04a3cee
Use latest Bundler on CRuby 2.6 and 2.7 as their default Bundler is too old
2022-07-26 21:55:37 +02:00
Benoit Daloze
4e1189c53d
Use the Bundler shipped with that Ruby by default
...
* Fixes https://github.com/ruby/setup-ruby/issues/358
2022-07-26 20:57:23 +02:00
Benoit Daloze
a7439cf424
Add support for macos-12
2022-05-16 12:08:36 +02:00
Benoit Daloze
57a3395c80
Support some Rubies on ubuntu-22.04
2022-05-15 13:05:40 +02:00
Benoit Daloze
296bf7f67a
Use an explicit list of supported platforms for nicer error messages
2022-05-15 12:21:30 +02:00
MSP-Greg
d246303ba7
Windows mswin - use ucrt64 tools instead of mingw64
2022-05-02 20:51:22 +02:00
Benoit Daloze
26470672e5
Small cleanups
2022-01-13 19:40:03 +01:00
MSP-Greg
b0aab3e1cf
Add ruby-loco ucrt build
2022-01-13 19:25:34 +01:00
MSP-Greg
226c4cceaa
Add Windows MSYS2 ucrt and Windows-2022 support
2022-01-13 19:25:34 +01:00
Benoit Daloze
7edf159e98
Add support for truffleruby+graalvm
...
* Using ruby-build to avoid duplicating too much logic.
2021-08-07 20:05:23 +02:00
Benoit Daloze
ae9cb3b565
Add Ruby 1.9 on Linux and macOS
...
* On Windows there are no 64-bit builds of Ruby 1.9.
* Fix floatVersion() for head versions.
* Use floatVersion() in more cases instead of regexps.
* Rely on ~/.gemrc to not install gem docs.
2021-08-01 14:56:11 +02:00
Benoit Daloze
0997e21bf3
Fix check for TruffleRuby < 21.0 and Bundler 1
2021-07-27 13:35:24 +02:00
Benoit Daloze
a783f957cd
Remove unnecessary check
2021-06-27 13:41:20 +02:00
MSP-Greg
2ebd17bccd
Update runtime logging of Path adjustments, show additions
2021-06-27 13:40:18 +02:00
Benoit Daloze
5ee10197cf
TruffleRuby >= 21.0 and JRuby >= 9.3 ship with Bundler 2
2021-03-25 16:46:35 +01:00
Thomas E Enebo
4f47b3664d
JRuby 9.3 (head) and forward ships bundler ( #164 )
2021-03-25 16:43:15 +01:00
Benoit Daloze
5aaa89ff0d
Automatically install libxml2-dev libxslt-dev on TruffleRuby if needed
...
* This is a special case, because TruffleRuby needs an extra system
dependency that other Rubies do not, and GitHub runners do not have
these packages installed by default, while TravisCI has them.
2021-01-09 14:48:58 +01:00
Benoit Daloze
084885eaca
Only set $BUNDLER_VERSION when needed (Bundler 1, Ruby >= 2.7)
2020-12-09 16:51:47 +01:00
Benoit Daloze
23b2b5e5f1
Create the .complete file so tc.find() can find it for future runs for self-hosted runners
2020-12-05 16:36:46 +01:00
Benoit Daloze
42fc2d3bce
Reuse builds in the toolcache when they exist
2020-12-05 16:18:50 +01:00
Benoit Daloze
e38f9abc9e
Fix usages of string.split(sep, limit)
...
* Since the limit just removes further matches in JavaScript.
2020-11-19 00:33:40 +01:00
Benoit Daloze
7c2bf7263d
Ensure an engine-only ruby-version picks the latest stable version and not a preview or RC
2020-11-18 21:52:51 +01:00
Benoit Daloze
59aafb8612
Add support for macos-11.0
2020-11-13 10:33:21 +01:00
Benoit Daloze
ad1ebae995
Also include the version in the platform for macos and windows
...
* Guess the platform based on $ImageOS.
2020-11-12 20:23:53 +01:00
Benoit Daloze
f4a8aa6c33
Use ImageOS for the cache key, so it also includes the OS version
2020-11-12 19:59:05 +01:00
Benoit Daloze
ba761ba8ff
Use a hardcoded toolcache path since we need to extract there to let Ruby work
2020-11-10 19:58:59 +01:00
Benoit Daloze
933dca770c
Extract CRuby releases under $RUNNER_TOOL_CACHE
2020-11-09 13:00:42 +01:00
Benoit Daloze
108b3a2c8a
Various cleanups
2020-09-03 13:42:03 +02:00
MSP-Greg
6ead459c74
Add envPreInstall, common.setupPath, use MSYS2 bash for Windows bash
...
envPreInstall - sets ENV values for runners
common.setupPath - collects all Path operations into one function, runs before Ruby install
Add MSYS2 paths to all Windows builds for MSYS2 Bash use
2020-09-03 12:13:49 +02:00
Benoit Daloze
d57231c9a3
Implement automatic bundle install and caching
...
* Not yet enabled by default.
2020-06-14 13:22:16 +02:00
Benoit Daloze
bf8b766096
Cleanups
2020-06-10 23:44:28 +02:00
MSP-Greg
44338c51c7
Fix tar extraction with windows-2016 image
...
1. common.js - add function win2nix(path) to convert windows style paths to nix style
2. ruby_builder.js - use Git tar for windows-2016, leave windows-2019 as is
2020-06-10 23:41:09 +02:00
Benoit Daloze
002b15eeca
Add support for ruby master debug builds
2020-05-13 23:48:52 +02:00
Benoit Daloze
e5857dbffe
Pass the validated engine and version to install()
2020-05-13 23:36:33 +02:00
Benoit Daloze
e9b0369f85
Add groups to clarify output and measure the time each group takes
2020-04-05 14:09:18 +02:00
Benoit Daloze
152ff008a3
Extract utility methods to common.js
2020-04-05 13:27:45 +02:00