Skip to content

Commit 699560a

Browse files
committed
Support all versions on Ubuntu 22.04
1 parent 8b5af31 commit 699560a

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ The action works on these [GitHub-hosted runners](https://help.github.com/en/act
3939

4040
| Operating System | Recommended | Other Supported Versions |
4141
| ----------- | -------- | -------- |
42-
| Ubuntu | `ubuntu-latest` (= `ubuntu-20.04`) | `ubuntu-18.04`, `ubuntu-22.04` (beta, only `ruby: 3.1 - head, truffleruby`) |
42+
| Ubuntu | `ubuntu-latest` (= `ubuntu-20.04`) | `ubuntu-18.04`, `ubuntu-22.04` |
4343
| macOS | `macos-latest` (= `macos-11`) | `macos-10.15`, `macos-12` (beta) |
4444
| Windows | `windows-latest` (= `windows-2022`) | `windows-2019` |
4545

46-
On `ubuntu-22.04` (beta), only `ruby: 3.1 - head, truffleruby` are supported, due to Ubuntu 22.04 only supporting OpenSSL 3.
47-
4846
The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
4947
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
5048
`mingw` and `mswin` builds are generated by [ruby-loco](https://github.com/MSP-Greg/ruby-loco).

dist/index.js

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ruby-builder.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ export function getAvailableVersions(platform, engine) {
1717
throw new Error(`Unsupported platform ${platform}`)
1818
}
1919

20-
if (platform === 'ubuntu-22.04') {
21-
const rubyVersions = rubyBuilderVersions['ruby']
22-
return {
23-
ruby: rubyVersions.slice(rubyVersions.indexOf('3.1.0')),
24-
}[engine]
25-
}
26-
2720
return rubyBuilderVersions[engine]
2821
}
2922

0 commit comments

Comments
 (0)