mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dffc446db9 | ||
|
|
2e007403fc | ||
|
|
72002957a7 | ||
|
|
bc1d550354 | ||
|
|
bcde69c47c | ||
|
|
eedae55b0a | ||
|
|
ca041f971d | ||
|
|
1eb8bd2dc1 | ||
|
|
fc67f6de0a | ||
|
|
5ea2b47b47 | ||
|
|
fb404b9557 |
+27
-11
@@ -17,7 +17,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm, macos-13, macos-14, macos-15, windows-2019, windows-2022, windows-2025 ]
|
os: [ ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm, macos-13, macos-14, macos-15, windows-2019, windows-2022, windows-2025, windows-11-arm ]
|
||||||
ruby: [
|
ruby: [
|
||||||
'1.9', '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', ruby-head,
|
'1.9', '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', ruby-head,
|
||||||
jruby, jruby-head,
|
jruby, jruby-head,
|
||||||
@@ -64,25 +64,43 @@ jobs:
|
|||||||
- { os: ubuntu-24.04-arm, ruby: '2.0' }
|
- { os: ubuntu-24.04-arm, ruby: '2.0' }
|
||||||
- { os: ubuntu-24.04-arm, ruby: '2.1' }
|
- { os: ubuntu-24.04-arm, ruby: '2.1' }
|
||||||
- { os: ubuntu-24.04-arm, ruby: '2.2' }
|
- { os: ubuntu-24.04-arm, ruby: '2.2' }
|
||||||
|
# RubyInstaller windows-arm64 builds only exist for Ruby 3.4+
|
||||||
|
- { os: windows-11-arm, ruby: '1.9' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.0' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.1' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.2' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.3' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.4' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.5' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.6' }
|
||||||
|
- { os: windows-11-arm, ruby: '2.7' }
|
||||||
|
- { os: windows-11-arm, ruby: '3.0' }
|
||||||
|
- { os: windows-11-arm, ruby: '3.1' }
|
||||||
|
- { os: windows-11-arm, ruby: '3.2' }
|
||||||
|
- { os: windows-11-arm, ruby: '3.3' }
|
||||||
|
# https://github.com/ruby/jruby-dev-builder/pull/14#issuecomment-2829841247
|
||||||
|
- { os: windows-11-arm, ruby: jruby }
|
||||||
|
- { os: windows-11-arm, ruby: jruby-head }
|
||||||
# Windows (note: previews are not available on Windows)
|
# Windows (note: previews are not available on Windows)
|
||||||
- { os: windows-2019, ruby: '1.9' }
|
- { os: windows-2019, ruby: '1.9' }
|
||||||
- { os: windows-2022, ruby: '1.9' }
|
- { os: windows-2022, ruby: '1.9' }
|
||||||
- { os: windows-2025, ruby: '1.9' }
|
- { os: windows-2025, ruby: '1.9' }
|
||||||
- { os: windows-2019, ruby: debug }
|
|
||||||
- { os: windows-2022, ruby: debug }
|
|
||||||
- { os: windows-2025, ruby: debug }
|
|
||||||
- { os: windows-2019, ruby: truffleruby }
|
- { os: windows-2019, ruby: truffleruby }
|
||||||
- { os: windows-2022, ruby: truffleruby }
|
- { os: windows-2022, ruby: truffleruby }
|
||||||
- { os: windows-2025, ruby: truffleruby }
|
- { os: windows-2025, ruby: truffleruby }
|
||||||
|
- { os: windows-11-arm, ruby: truffleruby }
|
||||||
- { os: windows-2019, ruby: truffleruby-head }
|
- { os: windows-2019, ruby: truffleruby-head }
|
||||||
- { os: windows-2022, ruby: truffleruby-head }
|
- { os: windows-2022, ruby: truffleruby-head }
|
||||||
- { os: windows-2025, ruby: truffleruby-head }
|
- { os: windows-2025, ruby: truffleruby-head }
|
||||||
|
- { os: windows-11-arm, ruby: truffleruby-head }
|
||||||
- { os: windows-2019, ruby: truffleruby+graalvm }
|
- { os: windows-2019, ruby: truffleruby+graalvm }
|
||||||
- { os: windows-2022, ruby: truffleruby+graalvm }
|
- { os: windows-2022, ruby: truffleruby+graalvm }
|
||||||
- { os: windows-2025, ruby: truffleruby+graalvm }
|
- { os: windows-2025, ruby: truffleruby+graalvm }
|
||||||
|
- { os: windows-11-arm, ruby: truffleruby+graalvm }
|
||||||
- { os: windows-2019, ruby: truffleruby+graalvm-head }
|
- { os: windows-2019, ruby: truffleruby+graalvm-head }
|
||||||
- { os: windows-2022, ruby: truffleruby+graalvm-head }
|
- { os: windows-2022, ruby: truffleruby+graalvm-head }
|
||||||
- { os: windows-2025, ruby: truffleruby+graalvm-head }
|
- { os: windows-2025, ruby: truffleruby+graalvm-head }
|
||||||
|
- { os: windows-11-arm, ruby: truffleruby+graalvm-head }
|
||||||
|
|
||||||
name: ${{ matrix.os }} ${{ matrix.ruby }}
|
name: ${{ matrix.os }} ${{ matrix.ruby }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -286,12 +304,12 @@ jobs:
|
|||||||
|
|
||||||
testFixedBundlerVersionForOldRuby:
|
testFixedBundlerVersionForOldRuby:
|
||||||
name: "Test bundler: 1.x for old Ruby"
|
name: "Test bundler: 1.x for old Ruby"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.2'
|
ruby-version: '2.3'
|
||||||
bundler: 1.16.6
|
bundler: 1.16.6
|
||||||
- run: bundle --version | grep -F "1.16.6" # And not 1.17.x from ~> 1
|
- run: bundle --version | grep -F "1.16.6" # And not 1.17.x from ~> 1
|
||||||
|
|
||||||
@@ -369,7 +387,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
gemfile: [ rails5, rails6 ]
|
gemfile: [ rails7, rails8 ]
|
||||||
name: "Test with ${{ matrix.gemfile }} gemfile"
|
name: "Test with ${{ matrix.gemfile }} gemfile"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
@@ -378,11 +396,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.6'
|
ruby-version: '3.2'
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
- run: bundle exec rails --version
|
- run: bundle exec rails --version
|
||||||
env:
|
|
||||||
RUBYOPT: '-rlogger' # Rails 6 is missing a require 'logger' in active_support/logger_thread_safe_level.rb
|
|
||||||
|
|
||||||
testTruffleRubyNokogiri:
|
testTruffleRubyNokogiri:
|
||||||
name: "Test installing a Gemfile with nokogiri on TruffleRuby"
|
name: "Test installing a Gemfile with nokogiri on TruffleRuby"
|
||||||
@@ -411,7 +427,7 @@ jobs:
|
|||||||
run: ruby -e "abort if File.exist?('C:/msys64/mingw64/bin/gcc.exe')"
|
run: ruby -e "abort if File.exist?('C:/msys64/mingw64/bin/gcc.exe')"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby:
|
|||||||
|
|
||||||
| Interpreter | Versions |
|
| Interpreter | Versions |
|
||||||
| ----------- | -------- |
|
| ----------- | -------- |
|
||||||
| `ruby` | 1.9.3, 2.0.0, 2.1.9, 2.2, all versions from 2.3.0 until 3.4.3, head, debug, mingw, mswin, ucrt |
|
| `ruby` | 1.9.3, 2.0.0, 2.1.9, 2.2, all versions from 2.3.0 until 3.5.0-preview1, head, debug, mingw, mswin, ucrt |
|
||||||
| `jruby` | 9.1.17.0 - 9.4.12.0, head |
|
| `jruby` | 9.1.17.0 - 10.0.0.0, head |
|
||||||
| `truffleruby` | 19.3.0 - 24.2.0, head |
|
| `truffleruby` | 19.3.0 - 24.2.0, head |
|
||||||
| `truffleruby+graalvm` | 21.2.0 - 24.2.0, head |
|
| `truffleruby+graalvm` | 21.2.0 - 24.2.0, head |
|
||||||
|
|
||||||
@@ -49,9 +49,14 @@ The action works on these [GitHub-hosted runners](https://docs.github.com/en/act
|
|||||||
|
|
||||||
| Operating System | Supported |
|
| Operating System | Supported |
|
||||||
| ---------------- | --------- |
|
| ---------------- | --------- |
|
||||||
| Ubuntu | `ubuntu-20.04`, `ubuntu-22.04`, `ubuntu-24.04`, `ubuntu-22.04-arm`, `ubuntu-24.04-arm` |
|
| Ubuntu | `ubuntu-22.04`, `ubuntu-24.04`, `ubuntu-22.04-arm`, `ubuntu-24.04-arm` |
|
||||||
| macOS | `macos-13` and newer versions |
|
| macOS | `macos-13` and newer versions |
|
||||||
| Windows | `windows-2019`, `windows-2022` |
|
| Windows | `windows-2019`, `windows-2022`, `windows-2025`, `windows-11-arm` |
|
||||||
|
|
||||||
|
Not all combinations of runner images and versions are supported.
|
||||||
|
The list of available Ruby versions can be seen in [ruby-builder-versions.json](ruby-builder-versions.json) for Ubuntu and macOS
|
||||||
|
(although some combinations are not available, see [the full list](https://github.com/ruby/ruby-builder/releases/tag/toolcache))
|
||||||
|
and in [windows-versions.json](windows-versions.json) for Windows.
|
||||||
|
|
||||||
The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
|
The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
|
||||||
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
|
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
|
||||||
@@ -59,9 +64,6 @@ The `mingw`, `ucrt` and `mswin` builds are generated by [ruby-loco](https://gith
|
|||||||
`ruby-head` is generated by [ruby-dev-builder](https://github.com/ruby/ruby-dev-builder),
|
`ruby-head` is generated by [ruby-dev-builder](https://github.com/ruby/ruby-dev-builder),
|
||||||
`jruby-head` is generated by [jruby-dev-builder](https://github.com/ruby/jruby-dev-builder),
|
`jruby-head` is generated by [jruby-dev-builder](https://github.com/ruby/jruby-dev-builder),
|
||||||
`truffleruby-head` and `truffleruby+graalvm-head` are generated by [truffleruby-dev-builder](https://github.com/ruby/truffleruby-dev-builder).
|
`truffleruby-head` and `truffleruby+graalvm-head` are generated by [truffleruby-dev-builder](https://github.com/ruby/truffleruby-dev-builder).
|
||||||
The full list of available Ruby versions can be seen in [ruby-builder-versions.json](ruby-builder-versions.json) for Ubuntu and macOS
|
|
||||||
(although some combinations are not available, see [the full list](https://github.com/ruby/ruby-builder/releases/tag/toolcache))
|
|
||||||
and in [windows-versions.json](windows-versions.json) for Windows.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|||||||
@@ -171,7 +171,6 @@ export async function hashFile(file) {
|
|||||||
|
|
||||||
// macos is not listed explicitly, see below
|
// macos is not listed explicitly, see below
|
||||||
const GitHubHostedPlatforms = [
|
const GitHubHostedPlatforms = [
|
||||||
'ubuntu-20.04-x64',
|
|
||||||
'ubuntu-22.04-x64',
|
'ubuntu-22.04-x64',
|
||||||
'ubuntu-22.04-arm64',
|
'ubuntu-22.04-arm64',
|
||||||
'ubuntu-24.04-x64',
|
'ubuntu-24.04-x64',
|
||||||
@@ -179,6 +178,7 @@ const GitHubHostedPlatforms = [
|
|||||||
'windows-2019-x64',
|
'windows-2019-x64',
|
||||||
'windows-2022-x64',
|
'windows-2022-x64',
|
||||||
'windows-2025-x64',
|
'windows-2025-x64',
|
||||||
|
'windows-11-arm64'
|
||||||
]
|
]
|
||||||
|
|
||||||
// Precisely: whether we have builds for that platform and there are GitHub-hosted runners to test it
|
// Precisely: whether we have builds for that platform and there are GitHub-hosted runners to test it
|
||||||
@@ -271,7 +271,7 @@ export function getOSNameVersionArch() {
|
|||||||
|
|
||||||
function findWindowsVersion() {
|
function findWindowsVersion() {
|
||||||
const version = os.version()
|
const version = os.version()
|
||||||
const match = version.match(/^Windows Server (\d+) Datacenter/)
|
const match = version.match(/^Windows(?: Server)? (\d+) (?:Datacenter|Enterprise)/)
|
||||||
if (match) {
|
if (match) {
|
||||||
return match[1]
|
return match[1]
|
||||||
} else {
|
} else {
|
||||||
@@ -387,7 +387,9 @@ export function setupPath(newPathEntries) {
|
|||||||
const windowsToolchain = core.getInput('windows-toolchain')
|
const windowsToolchain = core.getInput('windows-toolchain')
|
||||||
if (windows && windowsToolchain !== 'none') {
|
if (windows && windowsToolchain !== 'none') {
|
||||||
// main Ruby dll determines whether mingw or ucrt build
|
// main Ruby dll determines whether mingw or ucrt build
|
||||||
msys2Type = rubyIsUCRT(newPathEntries[0]) ? 'ucrt64' : 'mingw64'
|
msys2Type = os.arch() === 'arm64'
|
||||||
|
? 'clangarm64'
|
||||||
|
: rubyIsUCRT(newPathEntries[0]) ? 'ucrt64' : 'mingw64'
|
||||||
|
|
||||||
// add MSYS2 in path for all Rubies on Windows, as it provides a better bash shell and a native toolchain
|
// add MSYS2 in path for all Rubies on Windows, as it provides a better bash shell and a native toolchain
|
||||||
const msys2 = [`C:\\msys64\\${msys2Type}\\bin`, 'C:\\msys64\\usr\\bin']
|
const msys2 = [`C:\\msys64\\${msys2Type}\\bin`, 'C:\\msys64\\usr\\bin']
|
||||||
|
|||||||
+29
-19
File diff suppressed because one or more lines are too long
@@ -1,3 +1,3 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "rails", "~> 5.2.0"
|
gem "rails", "~> 7.2.0"
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "rails", "~> 6.0.0"
|
gem "rails", "~> 8.0.0"
|
||||||
@@ -9,25 +9,40 @@ entries = YAML.load(Net::HTTP.get(URI(url)), symbolize_names: true)
|
|||||||
|
|
||||||
versions = entries.select { |entry|
|
versions = entries.select { |entry|
|
||||||
entry[:filetype] == 'rubyinstaller7z' and
|
entry[:filetype] == 'rubyinstaller7z' and
|
||||||
entry[:name].include?('(x64)')
|
entry[:name].include?('(x64)') || entry[:name].include?('(arm)')
|
||||||
}.group_by { |entry|
|
}.group_by { |entry|
|
||||||
entry[:name][/Ruby (\d+\.\d+\.\d+)/, 1]
|
entry[:name][/Ruby (\d+\.\d+\.\d+)/, 1]
|
||||||
}.map { |version, builds|
|
}.map { |version, builds_by_version|
|
||||||
unless builds.sort_by { |build| build[:name] } == builds.reverse
|
builds = builds_by_version.group_by { |entry|
|
||||||
raise "not sorted as expected for #{version}"
|
entry[:name][/\((x64|arm)\)/, 1]
|
||||||
end
|
}.map { |arch, builds_by_arch|
|
||||||
[version, builds.first]
|
arch = 'arm64' if arch == 'arm'
|
||||||
|
unless builds_by_arch.sort_by { |build| build[:name] } == builds_by_arch.reverse
|
||||||
|
raise "not sorted as expected for #{version}"
|
||||||
|
end
|
||||||
|
[arch, builds_by_arch.first[:href]]
|
||||||
|
}.sort_by { |arch, builds|
|
||||||
|
arch
|
||||||
|
}.to_h
|
||||||
|
[version, builds]
|
||||||
}.sort_by { |version, entry|
|
}.sort_by { |version, entry|
|
||||||
Gem::Version.new(version)
|
Gem::Version.new(version)
|
||||||
}.select { |version, entry|
|
}.select { |version, entry|
|
||||||
min_requirements.any? { |req| req.satisfied_by?(Gem::Version.new(version)) }
|
min_requirements.any? { |req| req.satisfied_by?(Gem::Version.new(version)) }
|
||||||
}.map { |version, entry|
|
|
||||||
[version, entry[:href]]
|
|
||||||
}.to_h
|
}.to_h
|
||||||
|
|
||||||
versions['head'] = 'https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.7z'
|
versions['head'] = {
|
||||||
versions['mingw'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mingw.7z'
|
'arm64': 'https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-arm.7z',
|
||||||
versions['mswin'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z'
|
'x64': 'https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.7z'
|
||||||
versions['ucrt'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z'
|
}
|
||||||
|
versions['mingw'] = {
|
||||||
|
'x64': 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mingw.7z'
|
||||||
|
}
|
||||||
|
versions['mswin'] = {
|
||||||
|
'x64': 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z'
|
||||||
|
}
|
||||||
|
versions['ucrt'] = {
|
||||||
|
'x64': 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z'
|
||||||
|
}
|
||||||
|
|
||||||
File.binwrite 'windows-versions.json', "#{JSON.pretty_generate(versions)}\n"
|
File.binwrite 'windows-versions.json', "#{JSON.pretty_generate(versions)}\n"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"3.2.0-preview1", "3.2.0-preview2", "3.2.0-preview3", "3.2.0-rc1", "3.2.0", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8",
|
"3.2.0-preview1", "3.2.0-preview2", "3.2.0-preview3", "3.2.0-rc1", "3.2.0", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8",
|
||||||
"3.3.0-preview1", "3.3.0-preview2", "3.3.0-preview3", "3.3.0-rc1", "3.3.0", "3.3.1", "3.3.2", "3.3.3", "3.3.4", "3.3.5", "3.3.6", "3.3.7", "3.3.8",
|
"3.3.0-preview1", "3.3.0-preview2", "3.3.0-preview3", "3.3.0-rc1", "3.3.0", "3.3.1", "3.3.2", "3.3.3", "3.3.4", "3.3.5", "3.3.6", "3.3.7", "3.3.8",
|
||||||
"3.4.0-preview1", "3.4.0-preview2", "3.4.0-rc1", "3.4.0", "3.4.1", "3.4.2", "3.4.3",
|
"3.4.0-preview1", "3.4.0-preview2", "3.4.0-rc1", "3.4.0", "3.4.1", "3.4.2", "3.4.3",
|
||||||
|
"3.5.0-preview1",
|
||||||
"head", "debug", "asan", "3.4-asan"
|
"head", "debug", "asan", "3.4-asan"
|
||||||
],
|
],
|
||||||
"jruby": [
|
"jruby": [
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
"9.2.9.0", "9.2.10.0", "9.2.11.0", "9.2.11.1", "9.2.12.0", "9.2.13.0", "9.2.14.0", "9.2.15.0", "9.2.16.0", "9.2.17.0", "9.2.18.0", "9.2.19.0", "9.2.20.0", "9.2.20.1", "9.2.21.0",
|
"9.2.9.0", "9.2.10.0", "9.2.11.0", "9.2.11.1", "9.2.12.0", "9.2.13.0", "9.2.14.0", "9.2.15.0", "9.2.16.0", "9.2.17.0", "9.2.18.0", "9.2.19.0", "9.2.20.0", "9.2.20.1", "9.2.21.0",
|
||||||
"9.3.0.0", "9.3.1.0", "9.3.2.0", "9.3.3.0", "9.3.4.0", "9.3.6.0", "9.3.7.0", "9.3.8.0", "9.3.9.0", "9.3.10.0", "9.3.11.0", "9.3.13.0", "9.3.14.0", "9.3.15.0",
|
"9.3.0.0", "9.3.1.0", "9.3.2.0", "9.3.3.0", "9.3.4.0", "9.3.6.0", "9.3.7.0", "9.3.8.0", "9.3.9.0", "9.3.10.0", "9.3.11.0", "9.3.13.0", "9.3.14.0", "9.3.15.0",
|
||||||
"9.4.0.0", "9.4.1.0", "9.4.2.0", "9.4.3.0", "9.4.4.0", "9.4.5.0", "9.4.6.0", "9.4.7.0", "9.4.8.0", "9.4.9.0", "9.4.10.0", "9.4.11.0", "9.4.12.0",
|
"9.4.0.0", "9.4.1.0", "9.4.2.0", "9.4.3.0", "9.4.4.0", "9.4.5.0", "9.4.6.0", "9.4.7.0", "9.4.8.0", "9.4.9.0", "9.4.10.0", "9.4.11.0", "9.4.12.0",
|
||||||
|
"10.0.0.0",
|
||||||
"head"
|
"head"
|
||||||
],
|
],
|
||||||
"truffleruby": [
|
"truffleruby": [
|
||||||
|
|||||||
+6
-2
@@ -97,8 +97,12 @@ async function downloadAndExtract(platform, engine, version, rubyPrefix) {
|
|||||||
|
|
||||||
function getDownloadURL(platform, engine, version) {
|
function getDownloadURL(platform, engine, version) {
|
||||||
let builderPlatform = null
|
let builderPlatform = null
|
||||||
if (platform.startsWith('windows-') && os.arch() === 'x64') {
|
if (platform.startsWith('windows-')) {
|
||||||
builderPlatform = 'windows-latest'
|
if (os.arch() === 'x64') {
|
||||||
|
builderPlatform = 'windows-latest'
|
||||||
|
} else if (os.arch() === 'arm64') {
|
||||||
|
builderPlatform = 'windows-arm64'
|
||||||
|
}
|
||||||
} else if (platform.startsWith('macos-')) {
|
} else if (platform.startsWith('macos-')) {
|
||||||
if (os.arch() === 'x64') {
|
if (os.arch() === 'x64') {
|
||||||
builderPlatform = 'macos-latest'
|
builderPlatform = 'macos-latest'
|
||||||
|
|||||||
+256
-83
@@ -1,85 +1,258 @@
|
|||||||
{
|
{
|
||||||
"2.0.0": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.0.0-p648/ruby-2.0.0-p648-x64-mingw32.7z",
|
"2.0.0": {
|
||||||
"2.1.9": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.1.9/ruby-2.1.9-x64-mingw32.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.0.0-p648/ruby-2.0.0-p648-x64-mingw32.7z"
|
||||||
"2.2.6": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.2.6/ruby-2.2.6-x64-mingw32.7z",
|
},
|
||||||
"2.3.0": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.3.0/ruby-2.3.0-x64-mingw32.7z",
|
"2.1.9": {
|
||||||
"2.3.1": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.3.1/ruby-2.3.1-x64-mingw32.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.1.9/ruby-2.1.9-x64-mingw32.7z"
|
||||||
"2.3.3": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.3.3/ruby-2.3.3-x64-mingw32.7z",
|
},
|
||||||
"2.4.1": "https://github.com/oneclick/rubyinstaller2/releases/download/2.4.1-2/rubyinstaller-2.4.1-2-x64.7z",
|
"2.2.6": {
|
||||||
"2.4.2": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.2-2/rubyinstaller-2.4.2-2-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.2.6/ruby-2.2.6-x64-mingw32.7z"
|
||||||
"2.4.3": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.3-2/rubyinstaller-2.4.3-2-x64.7z",
|
},
|
||||||
"2.4.4": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.4-2/rubyinstaller-2.4.4-2-x64.7z",
|
"2.3.0": {
|
||||||
"2.4.5": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.5-1/rubyinstaller-2.4.5-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.3.0/ruby-2.3.0-x64-mingw32.7z"
|
||||||
"2.4.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.6-1/rubyinstaller-2.4.6-1-x64.7z",
|
},
|
||||||
"2.4.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.7-1/rubyinstaller-2.4.7-1-x64.7z",
|
"2.3.1": {
|
||||||
"2.4.9": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.9-1/rubyinstaller-2.4.9-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.3.1/ruby-2.3.1-x64-mingw32.7z"
|
||||||
"2.4.10": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.10-1/rubyinstaller-2.4.10-1-x64.7z",
|
},
|
||||||
"2.5.0": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.0-2/rubyinstaller-2.5.0-2-x64.7z",
|
"2.3.3": {
|
||||||
"2.5.1": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.1-2/rubyinstaller-2.5.1-2-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller/releases/download/ruby-2.3.3/ruby-2.3.3-x64-mingw32.7z"
|
||||||
"2.5.3": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.3-1/rubyinstaller-2.5.3-1-x64.7z",
|
},
|
||||||
"2.5.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.5-1/rubyinstaller-2.5.5-1-x64.7z",
|
"2.4.1": {
|
||||||
"2.5.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.6-1/rubyinstaller-2.5.6-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/2.4.1-2/rubyinstaller-2.4.1-2-x64.7z"
|
||||||
"2.5.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.7-1/rubyinstaller-2.5.7-1-x64.7z",
|
},
|
||||||
"2.5.8": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.8-2/rubyinstaller-2.5.8-2-x64.7z",
|
"2.4.2": {
|
||||||
"2.5.9": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.9-1/rubyinstaller-2.5.9-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.2-2/rubyinstaller-2.4.2-2-x64.7z"
|
||||||
"2.6.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.0-1/rubyinstaller-2.6.0-1-x64.7z",
|
},
|
||||||
"2.6.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.1-1/rubyinstaller-2.6.1-1-x64.7z",
|
"2.4.3": {
|
||||||
"2.6.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.2-1/rubyinstaller-2.6.2-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.3-2/rubyinstaller-2.4.3-2-x64.7z"
|
||||||
"2.6.3": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.3-1/rubyinstaller-2.6.3-1-x64.7z",
|
},
|
||||||
"2.6.4": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.4-1/rubyinstaller-2.6.4-1-x64.7z",
|
"2.4.4": {
|
||||||
"2.6.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.5-1/rubyinstaller-2.6.5-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.4-2/rubyinstaller-2.4.4-2-x64.7z"
|
||||||
"2.6.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.6-2/rubyinstaller-2.6.6-2-x64.7z",
|
},
|
||||||
"2.6.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.7-1/rubyinstaller-2.6.7-1-x64.7z",
|
"2.4.5": {
|
||||||
"2.6.8": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.8-1/rubyinstaller-2.6.8-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.5-1/rubyinstaller-2.4.5-1-x64.7z"
|
||||||
"2.6.9": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.9-1/rubyinstaller-2.6.9-1-x64.7z",
|
},
|
||||||
"2.6.10": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.10-1/rubyinstaller-2.6.10-1-x64.7z",
|
"2.4.6": {
|
||||||
"2.7.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.0-1/rubyinstaller-2.7.0-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.6-1/rubyinstaller-2.4.6-1-x64.7z"
|
||||||
"2.7.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.1-1/rubyinstaller-2.7.1-1-x64.7z",
|
},
|
||||||
"2.7.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.2-1/rubyinstaller-2.7.2-1-x64.7z",
|
"2.4.7": {
|
||||||
"2.7.3": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.3-1/rubyinstaller-2.7.3-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.7-1/rubyinstaller-2.4.7-1-x64.7z"
|
||||||
"2.7.4": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.4-1/rubyinstaller-2.7.4-1-x64.7z",
|
},
|
||||||
"2.7.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.5-1/rubyinstaller-2.7.5-1-x64.7z",
|
"2.4.9": {
|
||||||
"2.7.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.6-1/rubyinstaller-2.7.6-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.9-1/rubyinstaller-2.4.9-1-x64.7z"
|
||||||
"2.7.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.7-1/rubyinstaller-2.7.7-1-x64.7z",
|
},
|
||||||
"2.7.8": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.8-1/rubyinstaller-2.7.8-1-x64.7z",
|
"2.4.10": {
|
||||||
"3.0.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.0-1/rubyinstaller-3.0.0-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.10-1/rubyinstaller-2.4.10-1-x64.7z"
|
||||||
"3.0.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.1-1/rubyinstaller-3.0.1-1-x64.7z",
|
},
|
||||||
"3.0.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.2-1/rubyinstaller-3.0.2-1-x64.7z",
|
"2.5.0": {
|
||||||
"3.0.3": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.3-1/rubyinstaller-3.0.3-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.0-2/rubyinstaller-2.5.0-2-x64.7z"
|
||||||
"3.0.4": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.4-1/rubyinstaller-3.0.4-1-x64.7z",
|
},
|
||||||
"3.0.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.5-1/rubyinstaller-3.0.5-1-x64.7z",
|
"2.5.1": {
|
||||||
"3.0.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.6-1/rubyinstaller-3.0.6-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.1-2/rubyinstaller-2.5.1-2-x64.7z"
|
||||||
"3.0.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.7-1/rubyinstaller-3.0.7-1-x64.7z",
|
},
|
||||||
"3.1.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.0-1/rubyinstaller-3.1.0-1-x64.7z",
|
"2.5.3": {
|
||||||
"3.1.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.1-1/rubyinstaller-3.1.1-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.3-1/rubyinstaller-2.5.3-1-x64.7z"
|
||||||
"3.1.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.2-1/rubyinstaller-3.1.2-1-x64.7z",
|
},
|
||||||
"3.1.3": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.3-1/rubyinstaller-3.1.3-1-x64.7z",
|
"2.5.5": {
|
||||||
"3.1.4": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.4-1/rubyinstaller-3.1.4-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.5-1/rubyinstaller-2.5.5-1-x64.7z"
|
||||||
"3.1.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.5-1/rubyinstaller-3.1.5-1-x64.7z",
|
},
|
||||||
"3.1.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.6-1/rubyinstaller-3.1.6-1-x64.7z",
|
"2.5.6": {
|
||||||
"3.1.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.7-1/rubyinstaller-3.1.7-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.6-1/rubyinstaller-2.5.6-1-x64.7z"
|
||||||
"3.2.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.0-1/rubyinstaller-3.2.0-1-x64.7z",
|
},
|
||||||
"3.2.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.1-1/rubyinstaller-3.2.1-1-x64.7z",
|
"2.5.7": {
|
||||||
"3.2.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.7-1/rubyinstaller-2.5.7-1-x64.7z"
|
||||||
"3.2.3": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.3-1/rubyinstaller-3.2.3-1-x64.7z",
|
},
|
||||||
"3.2.4": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.4-1/rubyinstaller-3.2.4-1-x64.7z",
|
"2.5.8": {
|
||||||
"3.2.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.5-1/rubyinstaller-3.2.5-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.8-2/rubyinstaller-2.5.8-2-x64.7z"
|
||||||
"3.2.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.6-1/rubyinstaller-3.2.6-1-x64.7z",
|
},
|
||||||
"3.2.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.7-1/rubyinstaller-3.2.7-1-x64.7z",
|
"2.5.9": {
|
||||||
"3.2.8": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.8-1/rubyinstaller-3.2.8-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.9-1/rubyinstaller-2.5.9-1-x64.7z"
|
||||||
"3.3.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x64.7z",
|
},
|
||||||
"3.3.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.1-1/rubyinstaller-3.3.1-1-x64.7z",
|
"2.6.0": {
|
||||||
"3.3.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.2-1/rubyinstaller-3.3.2-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.0-1/rubyinstaller-2.6.0-1-x64.7z"
|
||||||
"3.3.3": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.3-1/rubyinstaller-3.3.3-1-x64.7z",
|
},
|
||||||
"3.3.4": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.4-1/rubyinstaller-3.3.4-1-x64.7z",
|
"2.6.1": {
|
||||||
"3.3.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.5-1/rubyinstaller-3.3.5-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.1-1/rubyinstaller-2.6.1-1-x64.7z"
|
||||||
"3.3.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.6-2/rubyinstaller-3.3.6-2-x64.7z",
|
},
|
||||||
"3.3.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.7-1/rubyinstaller-3.3.7-1-x64.7z",
|
"2.6.2": {
|
||||||
"3.3.8": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.8-1/rubyinstaller-3.3.8-1-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.2-1/rubyinstaller-2.6.2-1-x64.7z"
|
||||||
"3.4.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.1-2/rubyinstaller-3.4.1-2-x64.7z",
|
},
|
||||||
"3.4.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.2-1/rubyinstaller-3.4.2-1-x64.7z",
|
"2.6.3": {
|
||||||
"head": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.7z",
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.3-1/rubyinstaller-2.6.3-1-x64.7z"
|
||||||
"mingw": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mingw.7z",
|
},
|
||||||
"mswin": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z",
|
"2.6.4": {
|
||||||
"ucrt": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z"
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.4-1/rubyinstaller-2.6.4-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.6.5": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.5-1/rubyinstaller-2.6.5-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.6.6": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.6-2/rubyinstaller-2.6.6-2-x64.7z"
|
||||||
|
},
|
||||||
|
"2.6.7": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.7-1/rubyinstaller-2.6.7-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.6.8": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.8-1/rubyinstaller-2.6.8-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.6.9": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.9-1/rubyinstaller-2.6.9-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.6.10": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.10-1/rubyinstaller-2.6.10-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.0": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.0-1/rubyinstaller-2.7.0-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.1": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.1-1/rubyinstaller-2.7.1-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.2": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.2-1/rubyinstaller-2.7.2-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.3": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.3-1/rubyinstaller-2.7.3-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.4": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.4-1/rubyinstaller-2.7.4-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.5": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.5-1/rubyinstaller-2.7.5-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.6": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.6-1/rubyinstaller-2.7.6-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.7": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.7-1/rubyinstaller-2.7.7-1-x64.7z"
|
||||||
|
},
|
||||||
|
"2.7.8": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.8-1/rubyinstaller-2.7.8-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.0": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.0-1/rubyinstaller-3.0.0-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.1": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.1-1/rubyinstaller-3.0.1-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.2": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.2-1/rubyinstaller-3.0.2-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.3": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.3-1/rubyinstaller-3.0.3-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.4": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.4-1/rubyinstaller-3.0.4-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.5": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.5-1/rubyinstaller-3.0.5-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.6": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.6-1/rubyinstaller-3.0.6-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.0.7": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.7-1/rubyinstaller-3.0.7-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.0": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.0-1/rubyinstaller-3.1.0-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.1": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.1-1/rubyinstaller-3.1.1-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.2": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.2-1/rubyinstaller-3.1.2-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.3": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.3-1/rubyinstaller-3.1.3-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.4": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.4-1/rubyinstaller-3.1.4-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.5": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.5-1/rubyinstaller-3.1.5-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.6": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.6-1/rubyinstaller-3.1.6-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.1.7": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.7-1/rubyinstaller-3.1.7-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.0": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.0-1/rubyinstaller-3.2.0-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.1": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.1-1/rubyinstaller-3.2.1-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.2": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.3": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.3-1/rubyinstaller-3.2.3-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.4": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.4-1/rubyinstaller-3.2.4-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.5": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.5-1/rubyinstaller-3.2.5-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.6": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.6-1/rubyinstaller-3.2.6-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.7": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.7-1/rubyinstaller-3.2.7-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.2.8": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.8-1/rubyinstaller-3.2.8-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.0": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.1": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.1-1/rubyinstaller-3.3.1-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.2": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.2-1/rubyinstaller-3.3.2-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.3": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.3-1/rubyinstaller-3.3.3-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.4": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.4-1/rubyinstaller-3.3.4-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.5": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.5-1/rubyinstaller-3.3.5-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.6": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.6-2/rubyinstaller-3.3.6-2-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.7": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.7-1/rubyinstaller-3.3.7-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.3.8": {
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.8-1/rubyinstaller-3.3.8-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.4.1": {
|
||||||
|
"arm64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.1-2/rubyinstaller-3.4.1-2-arm.7z",
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.1-2/rubyinstaller-3.4.1-2-x64.7z"
|
||||||
|
},
|
||||||
|
"3.4.2": {
|
||||||
|
"arm64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.2-1/rubyinstaller-3.4.2-1-arm.7z",
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.2-1/rubyinstaller-3.4.2-1-x64.7z"
|
||||||
|
},
|
||||||
|
"3.4.3": {
|
||||||
|
"arm64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.3-1/rubyinstaller-3.4.3-1-arm.7z",
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.3-1/rubyinstaller-3.4.3-1-x64.7z"
|
||||||
|
},
|
||||||
|
"head": {
|
||||||
|
"arm64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-arm.7z",
|
||||||
|
"x64": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.7z"
|
||||||
|
},
|
||||||
|
"mingw": {
|
||||||
|
"x64": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mingw.7z"
|
||||||
|
},
|
||||||
|
"mswin": {
|
||||||
|
"x64": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z"
|
||||||
|
},
|
||||||
|
"ucrt": {
|
||||||
|
"x64": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+16
-12
@@ -4,6 +4,7 @@
|
|||||||
// OpenSSL version detection is needed in installGCCTools and installJRubyTools
|
// OpenSSL version detection is needed in installGCCTools and installJRubyTools
|
||||||
|
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
const os = require('os')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const cp = require('child_process')
|
const cp = require('child_process')
|
||||||
const core = require('@actions/core')
|
const core = require('@actions/core')
|
||||||
@@ -17,16 +18,18 @@ const drive = common.drive
|
|||||||
|
|
||||||
const msys2GCCReleaseURI = 'https://github.com/ruby/setup-msys2-gcc/releases/download'
|
const msys2GCCReleaseURI = 'https://github.com/ruby/setup-msys2-gcc/releases/download'
|
||||||
|
|
||||||
const msys2BasePath = process.env['GHCUP_MSYS2']
|
const msys2BasePath = process.env['GHCUP_MSYS2'] || 'C:\\msys64'
|
||||||
const vcPkgBasePath = process.env['VCPKG_INSTALLATION_ROOT']
|
const vcPkgBasePath = process.env['VCPKG_INSTALLATION_ROOT']
|
||||||
|
|
||||||
// needed for Ruby 2.0-2.3, cert file used by Git for Windows
|
// needed for Ruby 2.0-2.3, cert file used by Git for Windows
|
||||||
let certFile = 'C:\\Program Files\\Git\\mingw64\\etc\\ssl\\cert.pem'
|
const certFile = [
|
||||||
if (!fs.existsSync(certFile)) {
|
'C:\\Program Files\\Git\\mingw64\\etc\\ssl\\cert.pem',
|
||||||
certFile = 'C:\\Program Files\\Git\\mingw64\\ssl\\cert.pem'
|
'C:\\Program Files\\Git\\mingw64\\ssl\\cert.pem',
|
||||||
if (!fs.existsSync(certFile)) {
|
'C:\\Program Files\\Git\\clangarm64\\etc\\ssl\\cert.pem',
|
||||||
throw new Error("Cannot find Git's cert file")
|
'C:\\Program Files\\Git\\clangarm64\\ssl\\cert.pem'
|
||||||
}
|
].find(file => fs.existsSync(file))
|
||||||
|
if (certFile === undefined) {
|
||||||
|
throw new Error("Cannot find Git's cert file")
|
||||||
}
|
}
|
||||||
|
|
||||||
// location & path for old RubyInstaller DevKit (MSYS1), used with Ruby 2.0-2.3
|
// location & path for old RubyInstaller DevKit (MSYS1), used with Ruby 2.0-2.3
|
||||||
@@ -35,14 +38,14 @@ const msysPathEntries = [`${msys1}\\mingw\\x86_64-w64-mingw32\\bin`, `${msys1}\\
|
|||||||
|
|
||||||
export function getAvailableVersions(platform, engine) {
|
export function getAvailableVersions(platform, engine) {
|
||||||
if (engine === 'ruby') {
|
if (engine === 'ruby') {
|
||||||
return Object.keys(rubyInstallerVersions)
|
return Object.keys(rubyInstallerVersions).filter(version => os.arch() in rubyInstallerVersions[version])
|
||||||
} else {
|
} else {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function install(platform, engine, version) {
|
export async function install(platform, engine, version) {
|
||||||
const url = rubyInstallerVersions[version]
|
const url = rubyInstallerVersions[version][os.arch()]
|
||||||
|
|
||||||
// The windows-2016 and windows-2019 images have MSYS2 build tools (C:/msys64/usr)
|
// The windows-2016 and windows-2019 images have MSYS2 build tools (C:/msys64/usr)
|
||||||
// and MinGW build tools installed. The windows-2022 image has neither.
|
// and MinGW build tools installed. The windows-2022 image has neither.
|
||||||
@@ -129,7 +132,9 @@ async function installGCCTools(type, version) {
|
|||||||
// A subset of the MSYS2 base-devel group
|
// A subset of the MSYS2 base-devel group
|
||||||
async function installMSYS2Tools() {
|
async function installMSYS2Tools() {
|
||||||
const downloadPath = await common.measure(`Downloading msys2 build tools`, async () => {
|
const downloadPath = await common.measure(`Downloading msys2 build tools`, async () => {
|
||||||
let url = `${msys2GCCReleaseURI}/msys2-gcc-pkgs/msys2.7z`
|
const suffix = os.arch() === 'arm64' ? '-arm64' : ''
|
||||||
|
|
||||||
|
let url = `${msys2GCCReleaseURI}/msys2-gcc-pkgs/msys2${suffix}.7z`
|
||||||
console.log(url)
|
console.log(url)
|
||||||
return await tc.downloadTool(url)
|
return await tc.downloadTool(url)
|
||||||
})
|
})
|
||||||
@@ -146,8 +151,7 @@ async function installMSYS2Tools() {
|
|||||||
// windows-2022 and later images
|
// windows-2022 and later images
|
||||||
export async function installJRubyTools() {
|
export async function installJRubyTools() {
|
||||||
await installMSYS2Tools()
|
await installMSYS2Tools()
|
||||||
// Will need to add OpenSSL version detection when JRuby uses OpenSSL 3.0 ?
|
await installGCCTools(os.arch() === 'arm64' ? 'clangarm64' : 'mingw64', '3.4')
|
||||||
await installGCCTools('mingw64', '2.7')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Install vcpkg files needed to build mswin Ruby
|
// Install vcpkg files needed to build mswin Ruby
|
||||||
|
|||||||
Reference in New Issue
Block a user