Skip to content

Commit

Permalink
feat: ruby 3.3.0-preview1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jul 13, 2023
1 parent c8c5deb commit 9974b3d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ jobs:
os:
- ubuntu
ruby:
- "head"
- "3.3.0-preview1"
- "3.2"
- "3.1"
- "3.0"
Expand Down Expand Up @@ -156,6 +158,8 @@ jobs:
- macos
- ubuntu
ruby:
- "head"
- "3.3.0-preview1"
- "3.2"
- "3.1"
- "3.0"
Expand All @@ -179,11 +183,21 @@ jobs:
- os: windows
ruby: "3.2"
platform: x64-mingw-ucrt
- os: windows
ruby: "3.3.0-preview1"
platform: x64-mingw-ucrt
- os: windows
ruby: "head"
platform: x64-mingw-ucrt
exclude:
- os: windows
ruby: "3.1"
- os: windows
ruby: "3.2"
- os: windows
ruby: "3.3.0-preview1"
- os: windows
ruby: "head"

runs-on: ${{ matrix.os }}-latest
steps:
Expand Down Expand Up @@ -213,6 +227,8 @@ jobs:
os:
- windows
ruby:
- "head"
- "3.3.0-preview1"
- "3.2"
- "3.1"
- "3.0"
Expand All @@ -229,11 +245,21 @@ jobs:
- os: windows
ruby: "3.2"
platform: x64-mingw-ucrt
- os: windows
ruby: "3.3.0-preview1"
platform: x64-mingw-ucrt
- os: windows
ruby: "head"
platform: x64-mingw-ucrt
exclude:
- os: windows
ruby: "3.1"
- os: windows
ruby: "3.2"
- os: windows
ruby: "3.3.0-preview1"
- os: windows
ruby: "head"

runs-on: ${{ matrix.os }}-latest
steps:
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile.mri.erb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ RUN bash -c " \
axrubies = if platform =~ /x64-mingw-ucrt/
[
# Rubyinstaller-3.1.0+ is platform x64-mingw-ucrt
["3.2.0:3.1.0", "3.1.3", true],
["3.3.0-preview1:3.2.0:3.1.0", "3.1.3", true],
]
elsif platform =~ /x64-mingw32/
[
Expand All @@ -148,7 +148,7 @@ else
# Build xruby versions prior ruby2_keywords in parallel using ruby-2.5
["2.6.0:2.5.0:2.4.0", "2.5.9", false],
# Build xruby versions with ruby2_keywords in parallel using ruby-3.x
["3.2.0:3.1.0:3.0.0:2.7.0", "3.1.3", true],
["3.3.0-preview1:3.2.0:3.1.0:3.0.0:2.7.0", "3.1.3", true],
]
end

Expand Down Expand Up @@ -194,8 +194,8 @@ RUN find /usr/local/rake-compiler/ruby -name lib*-ruby*.dll.a | while read f ; d
RUN find /usr/local/rake-compiler/ruby -name rbconfig.rb | while read f ; do sed -i 's/-lcrypt//' $f ; done

<% if platform=~/darwin/ %>
# ruby-3.2 on darwin links with `-bundle_loader`, see https://github.com/rake-compiler/rake-compiler-dock/issues/87
RUN find /usr/local/rake-compiler/ruby/*/*/lib/ruby/3.2.0 -name rbconfig.rb | \
# ruby-3.2+ on darwin links with `-bundle_loader`, see https://github.com/rake-compiler/rake-compiler-dock/issues/87
RUN find /usr/local/rake-compiler/ruby/*/*/lib/ruby/3.[2-9].0 -name rbconfig.rb | \
while read f ; do sed -i 's/\["EXTDLDFLAGS"\] = "/&-Wl,-flat_namespace /' $f ; done
<% end %>
Expand Down Expand Up @@ -255,6 +255,6 @@ RUN bash -c " \
rvm use default \
"

ENV RUBY_CC_VERSION 3.2.0:3.1.0:3.0.0:2.7.0:2.6.0:2.5.0:2.4.0
ENV RUBY_CC_VERSION 3.3.0:3.2.0:3.1.0:3.0.0:2.7.0:2.6.0:2.5.0:2.4.0

CMD bash
1 change: 1 addition & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
next / unreleased
------------------

* Add Ruby 3.3.0-preview1 cross-compilation support.
* Update to rake-compiler 1.2.2.


Expand Down

0 comments on commit 9974b3d

Please sign in to comment.