diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9420c6..29a006b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: - { os: windows-2019, ruby: mingw } - { os: windows-2019, ruby: mswin } - { os: windows-2022, ruby: mingw } + - { os: windows-2022, ruby: ucrt } - { os: windows-2022, ruby: head } exclude: - { os: windows-2016, ruby: 1.9 } diff --git a/common.js b/common.js index feb7e15..8520a0a 100644 --- a/common.js +++ b/common.js @@ -48,7 +48,7 @@ export async function measure(name, block) { } export function isHeadVersion(rubyVersion) { - return rubyVersion === 'head' || rubyVersion === 'debug' || rubyVersion === 'mingw' || rubyVersion === 'mswin' + return ['head', 'debug', 'mingw', 'mswin', 'ucrt'].includes(rubyVersion) } export function isStableVersion(rubyVersion) { diff --git a/generate-windows-versions.rb b/generate-windows-versions.rb index d0b9cd2..3bafd12 100644 --- a/generate-windows-versions.rb +++ b/generate-windows-versions.rb @@ -28,6 +28,7 @@ versions = entries.select { |entry| versions['head'] = 'https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.7z' versions['mingw'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mingw.7z' versions['mswin'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z' +versions['ucrt'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z' js = "export const versions = #{JSON.pretty_generate(versions)}\n" File.binwrite 'windows-versions.js', js diff --git a/windows-versions.js b/windows-versions.js index 7a746b6..d2011ea 100644 --- a/windows-versions.js +++ b/windows-versions.js @@ -45,5 +45,6 @@ export const versions = { "3.1.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.0-1/rubyinstaller-3.1.0-1-x64.7z", "head": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-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" + "mswin": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z", + "ucrt": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z" }