Benoit Daloze
cf7216d52f
Use new releases of ruby-builder per engine-version
...
* See https://github.com/ruby/setup-ruby/issues/810
2025-09-21 19:19:44 +02:00
なつき
a8713082c2
Rewrite ruby/setup-msys2-gcc
2025-05-16 14:21:30 +02:00
なつき
dffc446db9
Support windows-11-arm
2025-04-26 12:43:27 +02:00
Charles Oliver Nutter
6c79f721fa
Test successful JRuby start without using launcher
...
Native launcher appears to hang on GHA when the JDK version is too
old for JRuby 10. This bypasses it and should be a bit lighter. It
will also avoid any variability in the launcher used, since Unixes
and Windows already use different executables.
2025-03-13 20:32:49 +01:00
Charles Oliver Nutter
f0a4d6bddd
Switch JAVA_HOME to 21 for JRuby ( #721 )
...
* JRuby 10 requires Java 21. Since the previous default was 17 and all JRuby releases should work fine on 21, we do this for all JRuby installs.
* Implements #718
2025-03-12 21:19:38 +01:00
Benoit Daloze
fbaef13682
Add support for ubuntu-22.04-arm64 and ubuntu-24.04-arm64
2025-01-18 23:33:18 +01:00
Benoit Daloze
2e3487c00e
No more macos-12 runners, minimum for macos-amd64 is now macos-13
2024-12-06 22:29:00 +01:00
Benoit Daloze
0cde4689ba
Clearer
2024-05-30 15:10:04 +02:00
Benoit Daloze
a56d16ef33
Refine errors text
2024-05-30 15:06:36 +02:00
Benoit Daloze
12dfa2bb47
Better error for 404
2024-05-30 15:01:16 +02:00
Benoit Daloze
943103cae7
Use downloadAndExtract() for truffleruby+graalvm too
...
* Simpler and more consistent that way.
* Avoids rerunning the post-install hook every time.
2024-05-22 00:08:22 +09:00
Benoit Daloze
b203567269
Workaround bug in XCode 14.2 linker not respecting RTLD_LAZY
...
* See https://github.com/oracle/truffleruby/issues/3390
2024-01-16 16:42:00 +01:00
Benoit Daloze
5cfe23c062
Add support for macos-13-arm64 GitHub runners
2023-10-11 18:58:56 +02:00
Benoit Daloze
31a7f6d628
No longer remove the prefix before extraction, extracting should be idempotent
...
* Fixes https://github.com/ruby/setup-ruby/issues/191
2023-03-05 15:39:16 +01:00
Benoit Daloze
59b5745c73
Use tc.find() with the effective tool cache path
...
* So it finds already-download prebuilt Ruby in the GH-hosted tool cache path
on self-hosted, where $RUNNER_TOOL_CACHE is often different than on GH-hosted.
* See #475 .
* This relies on tc.find() looking up the env var every time:
https://github.com/actions/toolkit/blob/1f4b3fac06/packages/tool-cache/src/tool-cache.ts#L522
2023-03-05 14:56:02 +01:00
Benoit Daloze
d03a71de6e
Fix tc.find() calls to use the proper name on self-hosted
2023-03-05 14:56:02 +01:00
Benoit Daloze
ddde3938f5
Use the default tool cache path on self-hosted runners matching a GH-hosted runner image
...
* See https://github.com/ruby/setup-ruby/issues/475
* Semantically reverts 377a94bc68
2023-03-05 14:56:02 +01:00
Benoit Daloze
5a73aa9f67
Explain why it was detected as self-hosted
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
Benoit Daloze
699560a00d
Support all versions on Ubuntu 22.04
2022-08-06 16:54:03 +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
Benoit Daloze
c96a8640af
Make version files pure-data JSON files
2022-01-23 12:16:37 +01:00
MSP-Greg
66308367ad
log output - all 'ing', align
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
MSP-Greg
477b21f02b
Fix ruby-builder.js - Windows io.mkdirP("D:\\")
2021-06-18 16:35:19 +02: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
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
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
efda314f4a
Remove Rubinius support
...
* Fixes https://github.com/ruby/setup-ruby/issues/101
2020-11-09 12:50:25 +01:00
Benoit Daloze
c49deecea1
Rubinius builds will no longer be provided
2020-11-08 19:13:11 +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
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
a1c5b2a66c
Switch to builds with --enable-shared and without Bundler pre-installed
2020-03-31 22:14:53 +02:00
Benoit Daloze
fb9d6fbc69
Automatically create a ~/.gemrc file
...
* To avoid generating documentation on `gem install`, which can take a long time.
2020-03-30 22:04:39 +02:00
Benoit Daloze
2e093de9b3
Use an array of PATH entries rather a string or null
2020-03-07 14:13:52 +01:00
MSP-Greg
8d89ffaa2b
Reorganize path manipulation, mswin tools ENV
...
1. Use only one 'core' call to set PATH
2. Clean PATH
3. Windows mswin - add vcvars*.bat changes to ENV
2020-03-07 13:41:58 +01:00
MSP-Greg
970f6659fb
Simplify 'tar' in ruby_builder.js - downloadAndExtract
2020-02-29 11:35:47 +01:00
MSP-Greg
01b616c294
ruby-builder.js - Win32 - use C:\Windows\system32\tar.exe
2020-02-28 17:59:58 +01:00
Benoit Daloze
28def02321
Use the automatic latest release asset link for head builds
2020-02-16 16:30:22 +01:00
Benoit Daloze
30011b6444
Cleanup PATH for JRuby on Windows
...
* That way we remove the default Ruby in PATH which was confusing.
2020-02-08 22:14:50 +01:00
Benoit Daloze
a01ba37375
Follow builder repositories transfers
2020-02-06 13:21:29 +01:00