@@ -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.7:3.2.6:3.1.6" , "3.4.1" ] ,
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
131
142
]
132
143
end
133
144
134
- strip = '-s' if platform !~ /darwin/
145
+ strip = '-s' if platform !~ /darwin|aarch64-mingw /
135
146
136
147
xrubies_build_plan . each do |xrubies , bootstrap_ruby_version | %>
137
148
RUN bash -c " \
@@ -187,7 +198,7 @@ RUN find /usr/local/rake-compiler/ruby/*/*/lib/ruby -name rbconfig.rb | while re
187
198
##
188
199
USER root
189
200
190
- <% if platform =~ /mingw/ %>
201
+ <% if platform =~ /(x64|x86)- mingw/ %>
191
202
# Install wrappers for strip commands as a workaround for "Protocol error " in boot2docker.
192
203
COPY build/strip_wrapper_vbox /root/
193
204
RUN mv /usr/bin/<%= target %> -strip /usr/bin/<%= target %> -strip.bin && \
0 commit comments