Add support for Windows

This commit is contained in:
Benoit Daloze
2020-01-05 19:33:14 +01:00
parent 9432c89d1a
commit 101f62de1d
7 changed files with 231 additions and 36 deletions
+10 -5
View File
@@ -27,10 +27,13 @@ which means Ruby 2.3 is unmaintained and considered insecure.
### Supported Platforms
The action works for the `ubuntu-16.04`, `ubuntu-18.04` and `macos-latest` GitHub-hosted runners.
`windows-latest` is not yet supported.
The action works for all GitHub-hosted runners:
`ubuntu-16.04`, `ubuntu-18.04`, `macos-latest` and `windows-latest`.
The prebuilt rubies are generated by https://github.com/eregon/ruby-install-builder.
Ruby 2.3, JRuby and TruffleRuby are not yet supported on `windows-latest`.
The prebuilt rubies are generated by https://github.com/eregon/ruby-install-builder
and on Windows by https://github.com/oneclick/rubyinstaller2.
## Usage
@@ -82,6 +85,8 @@ jobs:
## Limitations
* Currently does not work on Windows since the builder doesn't build on Windows.
https://github.com/MSP-Greg/actions-ruby is an alternative on Windows.
* This action currently only works with GitHub-hosted runners, not private runners.
## Credits
Most of the Windows logic is from https://github.com/MSP-Greg/actions-ruby by MSP-Greg.