Bruno Pinto
fdcfbcf14e
Enforce bundler version 1 for ruby 2.3.0 and 2.3.1
...
Fix https://github.com/ruby/setup-ruby/issues/148
2021-01-26 17:34:37 +01:00
Bruno Pinto
a358e49b56
Remove bundler enforcement on ruby 2.3
...
The fix for rubygems/rubygems#3570 was released with bundler 2.2.0.rc.1.
2021-01-26 15:20:41 +01:00
Benoit Daloze
3ab5bf6391
Add TruffleRuby 21.0.0
2021-01-20 16:09:38 +01:00
Benoit Daloze
1891d63a08
Fix error message when trying to install truffleruby on windows
2021-01-19 16:32:54 +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
d195ecb9ec
Move Bundler-related logic to a separate file
2021-01-08 20:56:31 +01:00
Manuel Meurer
c34fe21c5f
Install specific bundler version when minor and patch versions are given ( #139 )
2021-01-07 14:03:20 +01:00
MSP-Greg
9aeedd9a81
Update windows-version.js with 3.0.0, add Windows 3.0.0 to CI
2020-12-28 12:40:07 +01:00
Benoit Daloze
473e4d8fe5
Add Ruby 3.0.0
2020-12-25 13:14:24 +01:00
Benoit Daloze
1771151f64
Error if $BUNDLE_GEMFILE is set but does not exist
2020-12-22 11:46:12 +01:00
Benoit Daloze
f5db46ebcb
Fix version check
2020-12-22 11:18:45 +01:00
Benoit Daloze
dc58db7220
Use an absolute path for bundle config --local path
...
* See https://github.com/ruby/setup-ruby/issues/131
2020-12-21 21:13:02 +01:00
Benoit Tigeot
e5b6990d51
Add 3.0.0-rc1
2020-12-21 12:30:17 +01:00
Benoit Daloze
515629a013
Update to latest actions/cache to fix cache saving on Windows with MSYS2 tar
...
* See https://github.com/actions/toolkit/issues/632
* Fixes https://github.com/ruby/setup-ruby/issues/102
2020-12-12 14:51:32 +01:00
Benoit Daloze
0981b5ec00
Add jruby-9.2.14.0
2020-12-12 14:04:27 +01:00
Benoit Daloze
1482e9180a
Install the exact same Bundler version as in the lockfile if there is a lockfile
2020-12-11 14:46:33 +01:00
Benoit Daloze
f6f61ea575
Fix checks for Bundler version to consider an exact version like 2.1.4
2020-12-11 14:46:33 +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
efd6675fc9
Add 3.0.0-preview2
2020-12-08 18:42:10 +01:00
Benoit Daloze
e5a267414f
Fix value for options
2020-12-07 21:12:36 +01:00
ojab
cadade3366
Pass selected Bundler version to bundle config & bundle lock
2020-12-07 21:06:26 +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
ojab
30f5e2d4cd
Fixup bundler version for rubies with bundler as a default gem
...
Fixes #117
2020-12-05 15:40:47 +01:00
Benoit Daloze
2a0be7a409
Try stable versions first, and then try non-head versions
...
* Fixes https://github.com/ruby/setup-ruby/issues/115
2020-12-05 12:52:21 +01:00
Benoit Daloze
bacba738b2
Run bundle clean when reusing a cache and the lockfile changed
...
* Fixes https://github.com/ruby/setup-ruby/issues/113
2020-12-02 17:36:27 +01:00
Benoit Daloze
e27aee156d
Add TruffleRuby 20.3.0
2020-11-20 13:00:18 +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
bc0f274d1c
Fix Bundler cache when there is no Gemfile.lock
...
* Always show the list of installed gems in the log.
2020-11-12 19:34:43 +01:00
Benoit Daloze
1c896c8ea1
Always use Bundler 1 for JRuby 9.1.x
2020-11-12 19:08:42 +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
bb3a0c6e0b
Bundler 2 is shipped with truffleruby-head now
2020-11-10 15:33:41 +01:00
Benoit Daloze
339f055c86
Clarify Windows check
2020-11-10 11:35:50 +01:00
Benoit Daloze
d7b76f909a
Add Ruby 3.0.0-preview1
...
* Fixes https://github.com/ruby/setup-ruby/issues/100
2020-11-09 13:07:33 +01:00
Benoit Daloze
ebed7f7b66
Invalidate cache key since Rubies are installed in the toolcache now
...
* Some gems might capture the absolute path of the Ruby prefix.
2020-11-09 13:01:13 +01:00
Benoit Daloze
933dca770c
Extract CRuby releases under $RUNNER_TOOL_CACHE
2020-11-09 13:00:42 +01:00
Benoit Daloze
693cf1794d
Include the Gemfile path in the cache key
...
* See https://github.com/ruby/setup-ruby/issues/103#issuecomment-723960352
2020-11-09 13:00:04 +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
a195098f6b
Add Ruby 2.7.2 build from RubyInstaller
2020-10-06 16:41:11 +02:00
Benoit Daloze
f117ca04d8
Add Ruby 2.7.2
2020-10-04 16:38:29 +02:00
dependabot[bot]
8bc9ca9ace
Bump @actions/core from 1.2.4 to 1.2.6
...
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core ) from 1.2.4 to 1.2.6.
- [Release notes](https://github.com/actions/toolkit/releases )
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md )
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core )
Signed-off-by: dependabot[bot] <support@github.com >
2020-10-01 22:10:14 +02:00
Benoit Daloze
b62e5d53aa
Take advantage that detectGemfiles() only returns existing paths
...
* So use !== null instead of redoing the existsSync() check.
* Rename a few variables for consistency.
2020-09-19 11:31:18 +02:00
Samuel Williams
1c172ef5dc
Add support for gems.rb/gems.locked during bundle install ( #84 )
...
* Extract detection of gemfile and lockfile.
2020-09-19 11:18:52 +02:00
dependabot[bot]
4cbbce6b48
Bump node-fetch from 2.6.0 to 2.6.1
...
Bumps [node-fetch](https://github.com/bitinn/node-fetch ) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases )
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-09-13 13:21:14 +02:00
Benoit Daloze
108b3a2c8a
Various cleanups
2020-09-03 13:42:03 +02:00