File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 50
50
include :
51
51
- { gcc: mingw64 , ruby: mingw }
52
52
- { gcc: ucrt64 , ruby: ucrt }
53
- - { gcc: ucrt64-3.0 , ruby: head }
53
+ - { gcc: ucrt64-3.0 , ruby: 3.2 }
54
54
steps :
55
55
- name : Checkout
56
56
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -315,16 +315,19 @@ def refresh_keys
315
315
end
316
316
end
317
317
318
- def pacman_syuu
318
+ def pacman_syuu ( ignore = nil )
319
+
319
320
usr_bin = "#{ MSYS2_ROOT } /usr/bin"
320
321
321
322
exit 1 unless system "#{ usr_bin } /sed -i 's/^CheckSpace/#CheckSpace/g' C:/msys64/etc/pacman.conf"
322
323
323
- exec_check 'Updating all installed packages' , "#{ PACMAN } -Syuu --noconfirm"
324
+ ignore = ignore ? "--ignore #{ ignore } " : nil
325
+
326
+ exec_check 'Updating all installed packages' , "#{ PACMAN } -Syuu --noconfirm #{ ignore } "
324
327
325
328
system 'taskkill /f /fi "MODULES eq msys-2.0.dll"'
326
329
327
- exec_check 'Updating all installed packages (2nd pass)' , "#{ PACMAN } -Syuu --noconfirm"
330
+ exec_check 'Updating all installed packages (2nd pass)' , "#{ PACMAN } -Syuu --noconfirm #{ ignore } "
328
331
329
332
system 'taskkill /f /fi "MODULES eq msys-2.0.dll"'
330
333
Original file line number Diff line number Diff line change @@ -61,19 +61,30 @@ def openssl_upgrade
61
61
exec_check "Install OpenSSL Upgrade" , "pacman.exe -Udd --noconfirm --noprogressbar #{ PKG_PRE } #{ pkg_name } "
62
62
63
63
# copy previous dlls back into MSYS2 folder
64
- old_dlls . each { |fn | FileUtils . cp fn , "#{ dll_root } /#{ fn } " }
64
+ old_dlls . each do |fn |
65
+ unless File . exist? "#{ dll_root } /#{ fn } "
66
+ FileUtils . cp fn , "#{ dll_root } /#{ fn } "
67
+ end
68
+ end
65
69
end
66
70
67
71
def install_gcc
72
+
68
73
args = '--noconfirm --noprogressbar --needed'
69
74
# zlib required by gcc, gdbm for older Rubies
70
75
base_gcc = %w[ make pkgconf libmangle-git tools-git gcc ]
71
- base_ruby = %w[ gdbm gmp libffi libyaml openssl ragel readline ]
76
+ base_ruby = PKG_NAME . end_with? ( '-3.0' ) ?
77
+ %w[ gdbm gmp libffi libyaml ragel readline ] :
78
+ %w[ gdbm gmp libffi libyaml openssl ragel readline ]
72
79
73
80
pkgs = ( base_gcc + base_ruby ) . unshift ( '' ) . join " #{ PKG_PRE } "
74
81
75
82
# may not be needed, but...
76
- pacman_syuu
83
+ if PKG_NAME . end_with? ( '-3.0' )
84
+ pacman_syuu "mingw-w64-ucrt-x86_64-openssl"
85
+ else
86
+ pacman_syuu
87
+ end
77
88
78
89
exec_check "Updating the following #{ PKG_PRE [ 0 ..-2 ] } packages:#{ RST } \n " \
79
90
"#{ YEL } #{ ( base_gcc + base_ruby ) . join ' ' } " ,
You can’t perform that action at this time.
0 commit comments