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
bdfdb53a44
Try to fix quoting issue on Windows
2020-08-20 15:29:19 +02:00
Benoit Daloze
842f7a91c4
Fix the open-uri test to work on all versions
...
* open-uri no longer makes #open open URLs on MRI 2.8 dev
2020-08-19 16:43:17 +02:00
Benoit Daloze
6c10c0bae0
Add TruffleRuby 20.2.0
v1.43.0
2020-08-19 16:33:37 +02:00
Benoit Daloze
312f3d08ba
Improve the README, move the working directory section, mention $BUNDLE_GEMFILE
v1.42.0
2020-08-13 20:34:29 +02:00
Attila Večerek
273e7443b6
Move further explanation over to the README
2020-08-13 20:18:19 +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
Attila Večerek
1682e5e389
Read path to gemfile from env variable
2020-08-13 20:18:19 +02:00
Attila Večerek
25388a3d11
Accept a path in readBundledWithFromGemfileLock
2020-08-13 20:18:19 +02:00
Jakob Krigovsky
aa7df8d81f
Fix broken Markdown link
2020-08-13 19:50:42 +02:00
Benoit Daloze
162161eab5
Remove lint command
...
* eslint has been removed.
v1.41.0
2020-08-12 10:58:59 +02:00
Gregory Huczynski
c233f78bee
Add JRuby 9.2.13.0
2020-08-12 10:58:05 +02:00
Holger Just
5a76bd6a5f
Add support for Ruby 2.1 ( #71 )
v1.40.0
2020-07-16 22:23:31 +02:00
Benoit Daloze
40bbc5ec66
Also include the commit in the cache key for truffleruby-head
...
* That way new caches can be created if the previous cache is for a different commit.
v1.39.1
2020-07-11 16:08:35 +02:00
Benoit Daloze and Eliza Brock Marcum
1bb7de255b
Treat error from restoring the cache as a cache miss ( #68 )
...
* Don't retry or error out on restore cache errors
Co-authored-by: Eliza Brock Marcum <eliza@elizamarcum.com >
2020-07-11 16:02:33 +02:00
M. Adam Kendall
973b1baf94
Update README to reflect conditions for self-hosted runners
2020-07-09 01:07:29 +02:00
Benoit Daloze
ef4b00fd12
Mention JRuby 9.2.12.0 in the README
2020-07-02 11:35:41 +02:00
MSP-Greg
271876da60
Allow running external function before 'bundle install'
...
External actions may use setup-ruby, and some actions make changes/additions to the build environment. These may be needed for dependencies.
Hence, allow those external actions to run code before 'bundle install'. This is done by passing a function as a parameter to setupRuby().
v1.39.0
2020-07-01 21:22:43 +02:00
Benoit Daloze
5c4fc21c57
Add JRuby 9.2.12.0
2020-07-01 21:16:36 +02:00
Benoit Daloze
c8a88df157
Refactor how to call setup-ruby from other actions
...
* Automatically use inputs if available, use defaults otherwise.
2020-06-14 16:51:29 +02:00
Benoit Daloze
d57231c9a3
Implement automatic bundle install and caching
...
* Not yet enabled by default.
v1.38.0
2020-06-14 13:22:16 +02:00
Benoit Daloze
281d1c54fe
Add the @actions/cache package
2020-06-14 13:22:16 +02:00
Benoit Daloze
ea86920b92
Add windows-2016 to supported platforms
...
* Recommend to use *-latest.
v1.37.0
2020-06-11 13:22:47 +02:00
Johnny Willemsen
a43803ce44
Test all virtual environments, not just the latest, and added crontab ( #60 )
2020-06-11 13:15:53 +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
Sora Morimoto
037dfa7b6b
Update README.md
2020-06-09 15:38:02 +02:00
Benoit Daloze
6647273ce9
Add support for Ubuntu 20.04
v1.36.0
2020-06-07 13:16:44 +02:00
Benoit Daloze
071acb9122
Add script to conveniently print versions for ruby-builder
2020-06-07 13:00:19 +02:00
Benoit Daloze
ba5b846810
Add TruffleRuby 20.1.0
v1.35.0
2020-06-06 17:04:00 +02:00
Benoit Daloze
81be0938f7
Add an exported setupRuby() function which can be called from other actions
...
* Inputs are passed as simple object properties.
* It is recommended to expose the same inputs for other actions.
* See #58 and #33 .
v1.34.0
2020-06-06 13:52:42 +02:00
Benoit Daloze
b04e5b8846
Use Bundler 1 on Ruby 2.3
...
* At least until there is a new Bundler 2 release fixing this.
* Fixes https://github.com/ruby/setup-ruby/issues/51
v1.33.2
2020-06-06 13:16:46 +02:00
Benoit Daloze
a7df86edc6
A separate bundle config path vendor/bundle is needed for older Bundler
...
* See https://github.com/ruby/setup-ruby/pull/53#issuecomment-624827273
2020-05-16 18:55:34 +02:00
Scott Jacobsen
8137829321
Use the new deployment true config setting
2020-05-16 18:52:00 +02:00
Scott Jacobsen
a1d280134e
Use the --deployment flag for bundle install
...
`bundle install --deployment` should be used on CI environments - it sets additional options beyond the install path (ensures the Gemfile.lock is checked in, up to date, etc). https://bundler.io/v2.0/man/bundle-install.1.html#DEPLOYMENT-MODE
2020-05-16 18:52:00 +02:00
Benoit Daloze
d01e942f09
Link to condition and expression syntax docs too
2020-05-15 13:48:07 +02:00
Benoit Daloze
e74945bcae
Update README example workflows
...
* Show how to continue-on-error for head builds.
* Use the typical `bundle install` + `bundle exec rake` commands.
2020-05-15 13:29:19 +02:00
Benoit Daloze
8bff4379b9
Ruby 2.4 is EOL
2020-05-15 13:22:42 +02:00
Benoit Daloze
23b9735206
Fix checks for head versions
...
* Always use common.isHeadVersion().
v1.33.1
2020-05-15 13:01:01 +02:00
Benoit Daloze
002b15eeca
Add support for ruby master debug builds
v1.33.0
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
381e2639aa
Update all dependencies
v1.32.2
2020-04-29 20:36:28 +02:00
Benoit Daloze
d4032b551d
The release workflow needs a full checkout
v1.32.1
2020-04-18 14:01:20 +02:00
Benoit Daloze
da846ef6db
Add a workflow to automatically bump the v1 branch when publishing a release
v1.32.0
2020-04-18 13:51:50 +02:00
Benoit Daloze
1fe99df431
Rename CI job back to test
2020-04-18 13:36:48 +02:00
Benoit Daloze
c28669c4da
Mention the new working-directory input in the README
2020-04-18 13:34:32 +02:00
Benoit Daloze
9f60be7c73
Extract main logic in its own function
...
* So there isn't a giant try/catch around it.
2020-04-18 13:24:09 +02:00
Chris Bailey
29eefdda13
Add support for setting a working directory
2020-04-18 13:22:34 +02:00
Benoit Daloze
ec106b438a
Document the consequences of using a specific version or commit sha
v1.31.1
2020-04-09 19:25:18 +02:00