@@ -327,14 +327,13 @@ let msys2Pkgs = getInput('msys2')
327327
328328let pre // package prefix, set in setRuby
329329// standard pacman args
330- const args = '--noconfirm --noprogressbar --needed'
330+ const args = '--noconfirm --noprogressbar --needed --disable-download-timeout '
331331
332332// Not used. Installs packages stored in GitHub release.
333333// Only needed for exceptional cases.
334334const install = async ( pkg , release ) => { // eslint-disable-line no-unused-vars
335335 const uriBase = 'https://github.com/MSP-Greg/ruby-msys2-package-archive/releases/download'
336336 const suff = '-any.pkg.tar.xz'
337- const args = '--noconfirm --noprogressbar --needed'
338337
339338 const uri = `${ uriBase } /${ release } `
340339
@@ -386,7 +385,8 @@ const openssl = async () => {
386385 execSync ( `pacman.exe -Udd --noconfirm --noprogressbar ${ fn } ` )
387386 grpEnd ( msSt )
388387 mingwPkgs = mingwPkgs . replace ( / \b o p e n s s l \b / gi, '' ) . trim ( )
389- } else if ( is2022orLater && ruby . abiVers >= '2.5.0 ' )
388+ } else if ( ( is2022orLater && ruby . abiVers >= '2.5.0' ) || core . getInput ( 'ruby-version' ) === 'head' )
389+ // Ruby 'head' uses a custom OpenSSL 3 package
390390 mingwPkgs = mingwPkgs . replace ( / \b o p e n s s l \b / gi, '' ) . trim ( )
391391}
392392
@@ -396,7 +396,7 @@ const updateGCC = async () => {
396396
397397 msSt = grpSt ( `Upgrading gcc for Ruby ${ ruby . vers } ` )
398398 checkSpace
399- let gccPkgs = [ '' , 'binutils' , 'crt' , 'dlfcn' , ' headers', 'libiconv' , 'isl' , 'make' , 'mpc' , 'mpfr' , 'pkgconf' , 'windows-default-manifest' , 'libwinpthread' , 'libyaml' , 'winpthreads' , 'zlib' , 'gcc-libs' , 'gcc' ]
399+ let gccPkgs = [ '' , 'binutils' , 'crt' , 'headers' , 'libiconv' , 'isl' , 'make' , 'mpc' , 'mpfr' , 'pkgconf' , 'windows-default-manifest' , 'libwinpthread' , 'libyaml' , 'winpthreads' , 'zlib' , 'gcc-libs' , 'gcc' ]
400400 execSync ( `pacman.exe ${ msys2Sync } --nodeps ${ args } ${ gccPkgs . join ( pre ) } ` )
401401 grpEnd ( msSt )
402402
0 commit comments