Benoit Daloze
d5126b9b35
exec.exec() only accepts strings
2025-10-27 12:32:05 +01:00
Benoit Daloze
274049f8cf
Use os.availableParallelism() instead of os.cpus().length
...
* As https://nodejs.org/api/os.html#oscpus says:
os.cpus().length should not be used to calculate the amount of parallelism available to an application. Use os.availableParallelism() for this purpose.
2025-10-27 12:32:05 +01:00
Benoit Daloze
a16e0e6641
Test on macos-15-intel too
...
* Fixes https://github.com/ruby/setup-ruby/issues/814
2025-10-03 15:02:50 +02:00
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
Benoit Daloze
d3e13b3e37
Revert "feat: upgrade to node 24"
...
This reverts commit c4cd38db20 .
2025-09-20 21:54:20 +02:00
Benoit Daloze
4df093a946
Revert "chore: add setup-node for lint job"
...
This reverts commit 866b91cc02 .
2025-09-20 21:54:20 +02:00
Benoit Daloze
4451173596
Remove workaround for old truffleruby version from 2021
2025-08-30 13:55:15 +02:00
Benoit Daloze
805f878062
Remove failing test
2025-08-30 13:54:52 +02:00
Benoit Daloze
76da337679
Update GitHub-hosted runners link
2025-08-06 13:10:04 +02:00
Benoit Daloze
bb6434c747
Add non-null check
2025-07-26 10:58:48 +02:00
Benoit Daloze
0ecad18fe5
Revert "Add printing of the lockfile after installation"
...
This reverts commit e8621f0b86 .
2025-07-25 22:09:19 +02:00
Benoit Daloze
bd6859cc58
Use core.group() instead of startGroup/endGroup
2025-07-25 20:25:02 +02:00
Benoit Daloze
a4f8389190
Remove windows-2019 support
...
* See https://github.com/actions/runner-images/issues/12045
2025-07-15 22:28:17 +02:00
Benoit Daloze
afda160499
Improve exclude reasons
2025-04-26 12:52:51 +02:00
Benoit Daloze
e69d1ea5ec
Update README example
2025-04-26 12:52:44 +02:00
Benoit Daloze
2e007403fc
Remove support for ubuntu-20.04
...
* It's gone: https://github.com/actions/runner-images/issues/11101
2025-04-24 20:45:25 +02:00
Benoit Daloze
72002957a7
Update to Rails 7.2 and 8 in tests
...
* Rails <= 6 has a known issue with logger and the workaround causes CI failures:
https://github.com/ruby/setup-ruby/actions/runs/14641011806/job/41083255632
2025-04-24 16:28:30 +02:00
Benoit Daloze
bc1d550354
Update testFixedBundlerVersionForOldRuby to 2.3 since 2.2 is known to be broken with recent C compilers
...
* See https://github.com/ruby/setup-ruby/issues/496
2025-04-24 13:55:27 +02:00
Benoit Daloze
bcde69c47c
Update README.md
2025-04-18 18:54:39 +08:00
Benoit Daloze
eedae55b0a
Make it clear not all combinations are supported
2025-04-18 18:51:02 +08:00
Benoit Daloze
fc67f6de0a
Update remaining 20.04 tests to 22.04
2025-04-18 16:35:22 +08:00
Benoit Daloze
5ea2b47b47
Stop testing on ubuntu-20.04 since it's gone
2025-04-18 15:49:38 +08:00
Benoit Daloze
922ebc4c52
Use $JAVA_HOME/bin/java for the check
2025-03-15 12:36:12 +01:00
Benoit Daloze
bbda85882f
Fix .tool-versions and mise.toml tests
2025-03-11 12:24:54 +01:00
Benoit Daloze
30755d8bf4
Cleanup matching for .tool-versions and mise and add tests for .ruby-version and .tool-versions
2025-03-11 12:16:17 +01:00
Benoit Daloze
88a8155095
Make targetRubyVersion() more complete
2025-02-22 17:21:43 +01:00
Benoit Daloze
3ad45c51bf
Improve script for listing versions
2025-02-22 17:11:22 +01:00
Benoit Daloze
f2f42b7848
Skip test failing on JRuby on Windows
...
* See https://github.com/jruby/jruby/issues/8623
2025-02-12 12:08:15 +01:00
Benoit Daloze
8711a86ab6
Shorten to avoid horizontal scrolling
2025-02-05 11:11:17 +01:00
Benoit Daloze
28c4deda89
ubuntu-22.04-arm64 and ubuntu-24.04-arm64 support is complete
...
* *-head builds just need to complete.
2025-01-18 23:43:10 +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
7a6302104f
Workaround missing require 'logger' in Rails
2025-01-17 10:00:35 +01:00
Benoit Daloze
2a18b06812
Require macos-13+ for macos-amd64 as builds from now on will be on 13 and 12 can no longer be tested
2024-12-06 22:33:53 +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
6825c765eb
Clarify
2024-11-21 14:11:38 +01:00
Benoit Daloze
9a9fe58c47
Clarify all macOS versions from 12 are supported
2024-11-20 20:58:51 +01:00
Benoit Daloze
217c988b8c
Skip which bundle test on mingw, mswin and ucrt
...
* See https://github.com/ruby/setup-ruby/issues/658
2024-11-05 12:06:00 +01:00
Benoit Daloze
4d521eadc8
Fix exclusion
2024-10-11 11:59:43 +02:00
Benoit Daloze
1d9686e3ef
Mention the new ruby-asan under Supported Versions
...
* Remove the ASan Debugging section for now as it seems mostly redundant.
Native extensions are automatically compiled with ASan, so there is nothing special to do to use it.
2024-10-11 11:58:05 +02:00
Benoit Daloze
f269373437
Test the last 3.4 preview in CI
2024-10-07 20:33:19 +02:00
Benoit Daloze
f6e05710ec
Update README.md
2024-10-05 20:53:31 +02:00
Benoit Daloze
207a39969b
Move the link to the list together with other text about builds
2024-10-05 20:51:36 +02:00
Benoit Daloze
c04af2bb72
Replace macos-release by (parseInt(os.version()) - 9)
...
* That way we don't need to update that dependency to work with newer macOS releases.
2024-09-25 22:01:07 +02:00
Benoit Daloze
17f5c914a0
Add support for macos-15 and all future macos runners
...
* Fixes https://github.com/ruby/setup-ruby/issues/647
2024-09-25 22:00:58 +02:00
Benoit Daloze
5496baa6db
Update macos-release to 3.3.0 so it recognizes macos-15
2024-09-25 21:40:23 +02:00
Benoit Daloze
0ec4904dc7
Better error for TruffleRuby on Windows
...
* Fixes https://github.com/ruby/setup-ruby/issues/619
2024-09-25 21:02:29 +02:00
Benoit Daloze
3a77c29278
Fix updating the v1 branch on automated releases
...
* Fixes https://github.com/ruby/setup-ruby/issues/618
2024-07-06 11:54:45 +02:00
Benoit Daloze
1d0e911f61
Fully remove macos-11 since new builds will be on macos-12
2024-06-30 12:49:37 +02:00
Benoit Daloze
c48bc1e88d
macos-11 is no longer available
2024-06-30 12:41:55 +02:00
Benoit Daloze
713e0f1ab5
Update CONTRIBUTING.md
2024-06-27 15:46:14 +02:00
Benoit Daloze
af43264f2b
GH_REPO and GH_TOKEN must be set
2024-06-27 15:41:42 +02:00
Benoit Daloze
3251c5c21b
Add workflow to automatically create a release
2024-06-27 15:23:12 +02:00
Benoit Daloze
78c01b705f
Improve error message for CRuby < 2.6 on macos-arm64
...
* Is this the best error message ever?
2024-06-08 13:39:56 +02: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
68b705993a
Fix condition
2024-05-30 14:47:21 +02:00
Benoit Daloze
d046db60e3
Fail clearly for CRuby < 2.6 on macos-arm64
2024-05-30 14:41:43 +02:00
Benoit Daloze
d4138ebc47
Do not validate the version for self-hosted
2024-05-30 14:41:31 +02:00
Benoit Daloze
049eae0450
Remove trailing space
2024-05-30 12:56:58 +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
82dd21cb95
Remove leftover test files
...
* The corresponding tests were removed in e16528e678 .
They could be re-added but should generate these files dynamically to avoid confusion.
2024-05-06 19:16:43 +02:00
Benoit Daloze
e9d41d6cc1
Added dependabot for GitHub Actions
2024-02-17 12:27:49 +01:00
Benoit Daloze
22fdc77bf4
Clarify comment in test.yml
2024-01-31 16:00:45 +01:00
Benoit Daloze
bd03e04863
Test 3.3 on Windows
2024-01-25 17:18:05 +01:00
Benoit Daloze
5daca16544
Remove default in action.yml for windows-toolchain
...
* Otherwise it shows up in every usage of the action even if not set.
* Consistent with other non-required inputs.
2024-01-22 11:08:37 +01: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
360dc864d5
Shorten job title to fit in GH UI
2023-12-28 12:21:45 +01:00
Benoit Daloze
961f85197f
Rename workflow and variable for clarity
2023-12-27 20:27:45 +01:00
Benoit Daloze
036ef458dd
Explicitly exit after this action runs to not wait for hanging promises
...
* See https://github.com/ruby/setup-ruby/issues/543
2023-11-07 19:05:04 +01:00
Benoit Daloze
a05e47355e
Java is now available on macos-arm-oss
2023-10-21 12:52:54 +02:00
Benoit Daloze
679e23d4a3
Improve documentation about the self-hosted input
...
* Fixes https://github.com/ruby/setup-ruby/issues/535
2023-10-12 13:33:38 +02:00
Benoit Daloze
9f4cc09ff9
3.1 is now available on macos-arm64
2023-10-12 12:54:54 +02:00
Benoit Daloze
4d745286b4
Cleanup
2023-10-12 01:43:00 +02:00
Benoit Daloze
5cfe23c062
Add support for macos-13-arm64 GitHub runners
2023-10-11 18:58:56 +02:00
Benoit Daloze
f887fb3d0e
Update versions-strings-for-builder.rb
2023-10-11 18:52:53 +02:00
Benoit Daloze
b1c3bf6751
Rename getVirtualEnvironmentName() to getOSNameVersion() for clarity
2023-10-11 18:52:53 +02:00
Benoit Daloze
9aede54d98
Exclude known failing combination
...
* See https://github.com/ruby/setup-ruby/issues/496
2023-09-19 12:28:45 +02:00
Benoit Daloze
24a61db157
yarn upgrade
2023-09-19 12:26:46 +02:00
Benoit Daloze
7d546f4868
Test 3.3 preview
2023-05-14 14:27:22 +02:00
Benoit Daloze
d2b39ad0b5
Consider truffleruby preview releases to be stable versions
2023-04-28 17:06:17 +02:00
Benoit Daloze
6cecb48364
Use ubuntu-20.04 for test using Ruby 2.2
...
* https://github.com/ruby/setup-ruby/issues/496#issuecomment-1520667671
2023-04-24 22:02:59 +02:00
Benoit Daloze
089557fc38
Require a public workflow run URL for issues
2023-03-20 16:52:53 +01: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
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
Benoit Daloze
2789f85824
Update bug_report.yml
2023-03-03 13:39:36 +01:00
Benoit Daloze
fbb865d04d
Update bug_report.yml
2023-03-03 13:36:11 +01:00
Benoit Daloze
96ac949ea0
Update bug_report.yml
2023-03-03 13:33:53 +01:00
Benoit Daloze
f60ef1e808
Include working directory, $BUNDLE_WITH and $BUNDLE_WITHOUT in cache key
...
* Fixes https://github.com/ruby/setup-ruby/issues/350
* Fixes https://github.com/ruby/setup-ruby/issues/176
2023-02-11 14:17:29 +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
a26e1fb6b3
Do not show a stacktrace if a process failed, only the message
...
* The stacktrace is confusing and rarely useful in that case.
2023-02-11 13:39:22 +01:00
Benoit Daloze
d60780f6b6
Simplify new-versions.rb
2023-01-24 19:15:59 +01:00
Benoit Daloze
8aa012b56d
Debug new-versions.rb
2023-01-24 19:12:32 +01:00