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
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
933dca770c
Extract CRuby releases under $RUNNER_TOOL_CACHE
2020-11-09 13:00:42 +01: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
Holger Just
5a76bd6a5f
Add support for Ruby 2.1 ( #71 )
2020-07-16 22:23:31 +02:00
Benoit Daloze
e5857dbffe
Pass the validated engine and version to install()
2020-05-13 23:36:33 +02:00
Benoit Daloze
e9b0369f85
Add groups to clarify output and measure the time each group takes
2020-04-05 14:09:18 +02:00
Benoit Daloze
11238a2c00
Install Bundler at runtime if not already part of the stdlib
...
* This gives more flexibility to choose the Bundler version.
2020-03-31 22:23:11 +02:00
MSP-Greg
e648fd85b4
Windows - set ENV['MAKE']
2020-03-31 18:44:54 +02:00
Benoit Daloze
9c77d1b41f
Prefer path.delimiter to the hardcoded value
2020-03-30 22:04:39 +02:00
MSP-Greg
2641afc25c
Windows MSYS - move install to ssd drive
2020-03-30 12:28:12 +02:00
Benoit Daloze
e0c562b83f
Call 7z silently since it's too verbose
2020-03-28 14:05:21 +01:00
MSP-Greg
0a45f18d44
windows.js - install old MSYS devkit for MinGW 2.2 and 2.3
2020-03-28 14:00:06 +01:00
Benoit Daloze
ae39a8d7d2
Deduplicate the list of path entries for MSYS2
2020-03-24 18:49:35 +01:00
MSP-Greg
f70e6bf7d0
Update for Actions MSYS2 install
...
1. Use 'Git for Windows' cert.pem file
2. Add MSYS2 to path for mswin (after msvc additions)
3. Rearrange code for cleanup when MSYS2 is added to Window image
2020-03-24 18:45:54 +01:00
Benoit Daloze
67ca12cfaa
Small cleanups
2020-03-07 14:30:46 +01:00
Benoit Daloze
2e093de9b3
Use an array of PATH entries rather a string or null
2020-03-07 14:13:52 +01:00
MSP-Greg
8d89ffaa2b
Reorganize path manipulation, mswin tools ENV
...
1. Use only one 'core' call to set PATH
2. Clean PATH
3. Windows mswin - add vcvars*.bat changes to ENV
2020-03-07 13:41:58 +01:00
Benoit Daloze
91a6c780c4
Reword comment
2020-02-24 22:52:23 +01:00
Benoit Daloze
dbcdcf481d
Simplify the logic to set up certs dir and cert.pem
2020-02-24 22:52:23 +01:00
MSP-Greg
20324f7e34
Add ruby-loco mingw and mswin
...
1. Add ruby-loco mingw and mswin
2. Split workflow jobs into common and specials
3. Adjust workflow for mswin - 'ridk version' & 'c extension' steps
2020-02-24 22:01:08 +01:00
Benoit Daloze
55dff253ca
Do not remove any dev tools from PATH on Windows
...
* This might lead to more conflicts, but the flip side of a setup action
removing capabilities seems worse and unexpected.
* See https://github.com/ruby/setup-ruby/issues/19
2020-02-09 23:38:26 +01:00
Benoit Daloze
e15ecc8aaa
Print entries removed from PATH on Windows
2020-02-09 23:37:52 +01:00
Benoit Daloze
71f024b642
Silence the output of 7z on Windows
...
* It's quite verbose (22 lines) and there is no quiet flag.
2020-02-09 23:37:52 +01:00
Benoit Daloze
30011b6444
Cleanup PATH for JRuby on Windows
...
* That way we remove the default Ruby in PATH which was confusing.
2020-02-08 22:14:50 +01:00
Benoit Daloze
f422c055c3
Add support for Ruby 2.2
...
* Use Ruby 2.2.6 from RubyInstaller on Windows since there is no more
recent release of Ruby 2.2.
2020-02-06 15:20:13 +01:00
Benoit Daloze
48efd73814
Follow repository transfer and rename
2020-02-06 13:09:38 +01:00
Benoit Daloze
001fd1b7c7
Document the choice of the drive on Windows
2020-01-30 22:17:19 +01:00
MSP-Greg
4d7199dbd0
Use SSD drive for Windows Ruby location
2020-01-30 22:15:28 +01:00
Benoit Daloze
3551d3fbd4
Store the available Ruby versions in this repository
...
* That way it's always perfectly synchronized with the action. In
practice querying another repository sometimes returned a stale copy.
* Avoids an extra HTTPS request.
* The axios dependency is no longer needed.
* Makes it possible to tweak the versions available according to the platform.
2020-01-25 18:03:33 +01:00
Benoit Daloze
07160f610f
Move ruby-installer-versions.js to windows-versions.js for clarity
2020-01-25 18:03:19 +01:00
Benoit Daloze
7da380d64e
Add support for Ruby 2.3 on Windows
2020-01-19 18:24:29 +01:00
Benoit Daloze
a66a46f031
Refactor code to share logic between ruby-install-builder and windows
...
* Make use of ruby-installer-versions.js to validate the version on Windows.
2020-01-19 14:46:57 +01:00
MSP-Greg
626b752912
Correct Windows MSYS2 paths
2020-01-08 22:41:06 +01:00
Benoit Daloze
819c372fe9
Install Bundler 1 on Windows for Ruby < 2.6 without Bundler
2020-01-08 22:15:01 +01:00
Benoit Daloze
f06c4d9ab7
Install Bundler if needed on Windows
2020-01-05 23:21:44 +01:00
Benoit Daloze
3c644cf2fc
Better error if MSYS2 is missing
2020-01-05 19:47:18 +01:00
Benoit Daloze
101f62de1d
Add support for Windows
2020-01-05 19:33:14 +01:00