Benoit Daloze
4eb9f110ba
Update Node to 24
...
* There are warnings for Node 20 now, see
https://github.com/ruby/setup-ruby/issues/806#issuecomment-4038240742
* Node 20 is deprecated now and EOL in April 2026.
Node 24 has been available for a long time, so no runners should lack node24.
See https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
* For very old runners without node24 it's still possible to
force using node20 with `ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION=20`.
See also the blog post above.
2026-03-11 13:31:38 +01:00
Benoit Daloze
1010da45f3
Tweaks
2026-01-07 22:23:14 +01:00
Tingluo Huang
7f50f6e3b3
Add token input and pass it to release assets download.
2026-01-07 22:23:14 +01:00
Benoit Daloze
d3e13b3e37
Revert "feat: upgrade to node 24"
...
This reverts commit c4cd38db20 .
2025-09-20 21:54:20 +02:00
Rui Chen
c4cd38db20
feat: upgrade to node 24
...
Signed-off-by: Rui Chen <rui@chenrui.dev >
2025-09-18 22:00:12 +02:00
Marcel Hoppe and Benoit Daloze
ef45abe478
Add support for mise.toml ( #700 )
...
Co-authored-by: Benoit Daloze <eregontp@gmail.com >
2025-02-05 11:09:26 +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
MSP-Greg
558057564b
Add windows-toolchain input
2024-01-22 11:07:31 +01:00
MSP-Greg
251b9047a8
Fixup rubygems: latest to work with Rubies < 2.3
2023-12-28 13:20:54 +02:00
MSP-Greg
28f930222f
Fixup Rubygems latest
2023-12-27 21:23:02 +02:00
Róbert Papp
54a18e26db
Update deprecated Node 16 to 20
2023-10-26 15:25:49 +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
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
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
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
Yutaka Kamei
e92b7971f0
Update Node.js from v12 to v16
...
According to the release policy of Node.js,
Node.js v12 reached EOL (end-of-life).
https://nodejs.org/en/about/releases/
I think ruby/setup-ruby is ready to update Node.js to v16
because GitHub Actions runners support v16.
https://github.com/actions/runner/issues/772
2022-05-10 11:19:53 +02:00
Benoit Daloze
69fe46858b
Use implicit defaults for most inputs so the GitHub Actions UI shows only the set options
2022-05-02 20:39:45 +02:00
Benoit Daloze
d6a695ac2a
Do not install Bundler if RubyGems was updated
...
* Updating RubyGems will install Bundler as a side effect.
* Fixes https://github.com/ruby/setup-ruby/issues/326
2022-05-02 19:39:53 +02:00
Jason Frey
1a68550f2e
Fix bundler: with a minor version installing the wrong version
...
If passed `bundler: 2.2`, setup-ruby would install bundler 2.3, because
it would generate a constraint that looks like `~> 2.2`. This
unexpectedly installs the latest of the 2.x series, but the expectation
is that it would install the latest of the 2.2.x series.
Fixes #304
2022-04-05 18:04:27 +02:00
David Rodríguez
8781aa98b4
Tweak rubygems input behavior
...
When a fixed version is passed, it should be the minimum RubyGems
version for the whole matrix, i.e., RubyGems should not be dowgraded
past the default version of the oldest Ruby in the matrix.
2022-01-23 11:55:32 +01:00
David Rodríguez
c3f0cb18af
Add a new input to optionally update RubyGems
2022-01-23 11:55:32 +01:00
Jakub Pavlik
fa2182b2a4
cache-version input allowing a forced change of the cache key
2021-05-15 16:32:01 +02:00
Jonathan del Strother
3e7640a17e
Document the bundler: "x.y.z" feature
2020-12-11 14:46:33 +01:00
Benoit Daloze
0effb2cc50
Document that gems.rb/gems.locked is supported now
2020-09-19 11:43:36 +02:00
Benoit Daloze
312f3d08ba
Improve the README, move the working directory section, mention $BUNDLE_GEMFILE
2020-08-13 20:34:29 +02:00
Attila Večerek
33cc6f7238
Shorten the description in action.yml
2020-08-13 20:18:19 +02:00
Attila Večerek
7ac926d65e
Update description of bundler input in action.yml
2020-08-13 20:18:19 +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
c28669c4da
Mention the new working-directory input in the README
2020-04-18 13:34:32 +02:00
Chris Bailey
29eefdda13
Add support for setting a working directory
2020-04-18 13:22:34 +02:00
Benoit Daloze
f964e8aa48
Try to find the Bundler version from Gemfile.lock, otherwise install latest
2020-04-01 00:10:54 +02:00
Benoit Daloze
3d6280ad19
Add support for .tool-versions
2020-02-16 14:49:55 +01:00
Benoit Daloze
818f4eeb16
The :required key is required is action.yml
...
* See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions
2020-02-01 13:41:57 +01:00
Benoit Daloze
7b9c95cc8e
Use "the PATH" instead of "$PATH"
...
* Since $PATH is a Unix-specific syntax.
2020-01-17 22:26:52 +01:00
Benoit Daloze
a61be15bff
Read from .ruby-version if version is unset or set to '.ruby-version'
...
* Fixes https://github.com/eregon/use-ruby-action/issues/4
2020-01-06 22:00:45 +01:00
Benoit Daloze
9432c89d1a
Recommend the short version syntax
...
* It's safer long-term and ensures to use the latest release with the most bug fixes.
2020-01-05 13:11:27 +01:00
Benoit Daloze
b8d447ba75
Fill action.yml
2020-01-02 21:57:47 +01:00
Benoit Daloze
179e85affc
Get started
2020-01-01 16:54:25 +01:00
Benoit Daloze
775a4e4019
Initial commit
2020-01-01 12:39:26 +01:00