@@ -24,6 +24,13 @@ COPY --from=larskanis/mingw64-ucrt:20.04 \
24
24
/debs/
25
25
RUN dpkg -i /debs/*.deb
26
26
27
+ <% elsif platform =~ /aarch64-mingw-ucrt/ %>
28
+ RUN wget https://github.com/mstorsjo/llvm-mingw/releases/download/20250114/llvm-mingw-20250114-ucrt-ubuntu-20.04-<%= RUBY_PLATFORM[/^\w+/] %> .tar.xz && \
29
+ tar xf llvm-mingw*.tar.xz && \
30
+ export MINGW_PATH=`ls -d llvm-mingw-*/` && \
31
+ echo "export PATH=`pwd`/$MINGW_PATH/bin:\$PATH" >> /etc/rubybashrc && \
32
+ rm -r $MINGW_PATH/bin/i686-w64* $MINGW_PATH/bin/armv7-w64* $MINGW_PATH/bin/x86_64-w64* $MINGW_PATH/i686-w64* $MINGW_PATH/armv7-w64* $MINGW_PATH/x86_64-w64*
33
+
27
34
<% elsif platform =~ /linux-musl/ %>
28
35
COPY build/mk_musl_cross.sh /tmp
29
36
RUN /tmp/mk_musl_cross.sh <%= target %>
@@ -117,6 +124,10 @@ xrubies_build_plan = if platform =~ /x64-mingw-ucrt/
117
124
# Rubyinstaller-3.1+ is platform x64-mingw-ucrt
118
125
[ "3.4.1:3.3.5:3.2.6:3.1.6" , "3.1.6" ] ,
119
126
]
127
+ elsif platform =~ /aarch64-mingw-ucrt/
128
+ [
129
+ [ "3.4.1" , "3.1.6" ] ,
130
+ ]
120
131
elsif platform =~ /x64-mingw32/
121
132
[
122
133
# Rubyinstaller prior to 3.1 is platform x64-mingw32
130
141
]
131
142
end
132
143
133
- strip = '-s' if platform !~ /darwin/
144
+ strip = '-s' if platform !~ /darwin|aarch64-mingw /
134
145
135
146
xrubies_build_plan . each do |xrubies , bootstrap_ruby_version | %>
136
147
RUN bash -c " \
@@ -186,7 +197,7 @@ RUN find /usr/local/rake-compiler/ruby/*/*/lib/ruby -name rbconfig.rb | while re
186
197
##
187
198
USER root
188
199
189
- <% if platform =~ /mingw/ %>
200
+ <% if platform =~ /(x64|x86)- mingw/ %>
190
201
# Install wrappers for strip commands as a workaround for "Protocol error " in boot2docker.
191
202
COPY build/strip_wrapper_vbox /root/
192
203
RUN mv /usr/bin/<%= target %> -strip /usr/bin/<%= target %> -strip.bin && \
0 commit comments