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
Benoit Daloze
25ccf0aad8
Fix interpolation in addVCVARSEnv()
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
MSP-Greg
45ec312a6e
windows.js - remove code for embedded MSYS2
2020-09-03 12:13:49 +02:00
Benoit Daloze
568cdbf232
Revert "Add support for gems.rb/gems.locked during bundle install."
...
* This reverts commit 638e8fff19 .
* Needs some fixes and review.
2020-09-03 11:58:37 +02:00
Samuel Williams
638e8fff19
Add support for gems.rb/gems.locked during bundle install.
2020-09-03 10:48:45 +12:00
MSP-Greg
ad2d64d83c
@zeit/ncc -> @vercel/ncc, update package.json
2020-08-23 13:50:07 +02:00
Scott Jacobsen
0ccde464c3
Bump @actions/cache version
...
The @actions/cache version currently being used has performance issue
with large gem caches. See https://github.com/actions/cache/issues/267
This was addressed here https://github.com/actions/toolkit/pull/497
Bump the @actions/cache version to a newer release that contains that
fix.
2020-08-22 11:17:58 +02:00
Benoit Daloze
6c10c0bae0
Add TruffleRuby 20.2.0
2020-08-19 16:33:37 +02:00
Attila Večerek
1682e5e389
Read path to gemfile from env variable
2020-08-13 20:18:19 +02:00