Skip to content

Commit ed114a5

Browse files
authored
Merge pull request #142 from moznion/4.0.0-preview2
Support 4.0.0 preview2
2 parents 7589c4d + db7d1db commit ed114a5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- 3.2.8
2222
- 3.3.7
2323
- 3.4.2
24+
- 4.0.0-preview2
2425
- master
2526
arch:
2627
- amd64

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ namespace :docker do
269269
version_info = get_ruby_version_at_commit(commit_hash)
270270
ruby_so_suffix = version_info.values_at(:MAJOR, :MINOR, :TEENY).join(".")
271271
build_args << "RUBY_SO_SUFFIX=#{ruby_so_suffix}"
272+
elsif ruby_version.match?(/\A\d+\.\d+\.\d+-(preview|rc|dev)\d*\z/)
273+
# For preview, rc, and dev versions, extract just the numeric version
274+
# e.g., "4.0.0-preview2" -> "4.0.0"
275+
ruby_so_suffix = ruby_version.match(/\A(\d+\.\d+\.\d+)/)[1]
276+
build_args << "RUBY_SO_SUFFIX=#{ruby_so_suffix}"
272277
end
273278
%w(cppflags optflags).each do |name|
274279
build_args << %Q(#{name}=#{ENV[name]}) if ENV.key?(name)

0 commit comments

Comments
 (0)