mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 06:54:20 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9eb537ca03 | ||
|
|
e1a3b100ca | ||
|
|
0df5288f06 |
@@ -135,9 +135,6 @@ jobs:
|
||||
- name: bash test
|
||||
shell: bash
|
||||
run: echo ~ && bundle install
|
||||
- name: Windows JRuby
|
||||
if: runner.os == 'Windows' && startsWith(matrix.ruby, 'jruby')
|
||||
run: gem install sassc
|
||||
|
||||
testDotRubyVersion:
|
||||
name: "Test .ruby-version"
|
||||
|
||||
@@ -49,7 +49,7 @@ The action works on these [GitHub-hosted runners](https://docs.github.com/en/act
|
||||
|
||||
| Operating System | Supported |
|
||||
| ---------------- | --------- |
|
||||
| Ubuntu | `ubuntu-22.04`, `ubuntu-24.04`, `ubuntu-22.04-arm`, `ubuntu-24.04-arm` |
|
||||
| Ubuntu | `ubuntu-22.04`, `ubuntu-24.04`, `ubuntu-26.04`, `ubuntu-22.04-arm`, `ubuntu-24.04-arm`, `ubuntu-26.04-arm` |
|
||||
| macOS | `macos-14` and newer versions |
|
||||
| Windows | `windows-2022`, `windows-2025`, `windows-11-arm` |
|
||||
|
||||
|
||||
@@ -186,6 +186,8 @@ const GitHubHostedPlatforms = [
|
||||
'ubuntu-22.04-arm64',
|
||||
'ubuntu-24.04-x64',
|
||||
'ubuntu-24.04-arm64',
|
||||
'ubuntu-26.04-x64',
|
||||
'ubuntu-26.04-arm64',
|
||||
'windows-2022-x64',
|
||||
'windows-2025-x64',
|
||||
'windows-11-arm64'
|
||||
|
||||
+2
@@ -521,6 +521,8 @@ const GitHubHostedPlatforms = [
|
||||
'ubuntu-22.04-arm64',
|
||||
'ubuntu-24.04-x64',
|
||||
'ubuntu-24.04-arm64',
|
||||
'ubuntu-26.04-x64',
|
||||
'ubuntu-26.04-arm64',
|
||||
'windows-2022-x64',
|
||||
'windows-2025-x64',
|
||||
'windows-11-arm64'
|
||||
|
||||
@@ -23,8 +23,10 @@ runners = %w[
|
||||
macos-15-intel
|
||||
ubuntu-22.04
|
||||
ubuntu-24.04
|
||||
ubuntu-26.04
|
||||
ubuntu-22.04-arm
|
||||
ubuntu-24.04-arm
|
||||
ubuntu-26.04-arm
|
||||
windows-2022
|
||||
windows-2025
|
||||
windows-11-arm
|
||||
@@ -38,6 +40,9 @@ macos_arm64_runners, macos_x64_runners = macos_runners.partition { |runner| !run
|
||||
ubuntu_arm64_runners, ubuntu_x64_runners = ubuntu_runners.partition { |runner| runner.end_with?('-arm')}
|
||||
windows_arm64_runners, windows_x64_runners = windows_runners.partition { |runner| runner.end_with?('-arm') }
|
||||
|
||||
asan_runners = ubuntu_x64_runners.grep(/ubuntu-24\.04/)
|
||||
ubuntu2604_runners = ubuntu_runners.grep(/ubuntu-26\.04/)
|
||||
|
||||
# Versions
|
||||
ruby_builder_versions = JSON.load(File.read('ruby-builder-versions.json'))
|
||||
windows_versions = JSON.load(File.read('windows-versions.json'))
|
||||
@@ -61,7 +66,7 @@ matrix += windows_x64_runners.product(ruby_loco_versions)
|
||||
|
||||
# asan: latest release + head
|
||||
asan_versions = %w[asan-release asan]
|
||||
matrix += ubuntu_x64_runners.sort.last(1).product(asan_versions)
|
||||
matrix += asan_runners.sort.last(1).product(asan_versions)
|
||||
|
||||
# https://github.com/ruby/setup-ruby/pull/596#discussion_r1606047680
|
||||
matrix -= (ubuntu_runners - %w[ubuntu-22.04]).product(%w[1.9])
|
||||
@@ -71,6 +76,8 @@ matrix -= ubuntu_runners.product(%w[2.2])
|
||||
matrix -= macos_arm64_runners.product(%w[1.9 2.0 2.1 2.2 2.3 2.4 2.5])
|
||||
# These old Rubies fail to compile or segfault on Linux arm64
|
||||
matrix -= ubuntu_arm64_runners.product(%w[1.9 2.0 2.1 2.2])
|
||||
# These old Rubies fail to compile on ubuntu-26.04
|
||||
matrix -= ubuntu2604_runners.product(%w[1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1])
|
||||
# RubyInstaller windows-arm64 builds only exist for Ruby 3.4+
|
||||
matrix -= windows_arm64_runners.product(%w[2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3])
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ versions = JSON.load(hash).transform_keys(&:to_sym)
|
||||
ONLY_LATEST_PATCH = ENV['ONLY_LATEST_PATCH']
|
||||
|
||||
def filter(versions)
|
||||
versions -= %w[head]
|
||||
versions -= %w[head debug asan asan-release 3.5.0-preview1]
|
||||
if ONLY_LATEST_PATCH
|
||||
versions = versions.group_by { |v| v[/^\d+\.\d+/] }.map { _2.last }
|
||||
end
|
||||
@@ -29,5 +29,7 @@ puts filter(versions[:"truffleruby+graalvm"]).map { |v| "truffleruby+graalvm-#{v
|
||||
|
||||
puts
|
||||
puts filter(versions[:jruby]).map { |v| "jruby-#{v}" }.join(', ')
|
||||
|
||||
puts
|
||||
puts "For Windows:"
|
||||
puts filter(versions[:jruby]).join(', ')
|
||||
|
||||
Reference in New Issue
Block a user