File tree Expand file tree Collapse file tree 4 files changed +23
-12
lines changed
Expand file tree Collapse file tree 4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 3333 - name : Set up Ruby
3434 uses : ruby/setup-ruby@v1
3535 with :
36- ruby-version : mingw
36+ ruby-version : ucrt
3737 timeout-minutes : 7
3838
3939 - name : Update msys2 tools 7z and Upload
@@ -52,10 +52,10 @@ jobs:
5252 fail-fast : false
5353 matrix :
5454 include :
55- - { gcc: mingw64 , ruby: mingw }
55+ - { gcc: mingw64 , ruby: '3.0' }
5656 - { gcc: mingw64-3.0, ruby: mingw }
57- - { gcc: ucrt64 , ruby: ucrt }
58- - { gcc: ucrt64-3.0 , ruby: 3.2 }
57+ - { gcc: ucrt64 , ruby: 3.1 }
58+ - { gcc: ucrt64-3.0 , ruby: ucrt }
5959 steps :
6060 - name : Checkout
6161 uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ module Common
3434 PACMAN = 'C:/msys64/usr/bin/pacman.exe'
3535 BASH = 'C:/msys64/usr/bin/bash.exe'
3636
37+ SSL_3_SAVE_FILES = %w[
38+ bin/libcrypto-3-x64.dll
39+ bin/libssl-3-x64.dll
40+ etc/ssl/openssl.cnf
41+ ]
42+
3743 def gh_api_graphql ( http , query )
3844 body = { }
3945 body [ "query" ] = query
Original file line number Diff line number Diff line change @@ -44,12 +44,6 @@ class << self
4444 end
4545
4646 MSYS2_PKG = "#{ MSYS2_ROOT } /#{ PKG_DIR } "
47-
48- SSL_3_SAVE_FILES = %w[
49- bin/libcrypto-3-x64.dll
50- bin/libssl-3-x64.dll
51- etc/ssl/openssl.cnf
52- ]
5347
5448 SSL_1_DLLS = %w[ bin/libcrypto-1_1-x64.dll bin/libssl-1_1-x64.dll ]
5549
@@ -134,11 +128,15 @@ def install_gcc
134128
135129 pkgs = ( base_gcc + base_ruby ) . unshift ( '' ) . join " #{ PKG_PRE } "
136130
131+ SSL_3_SAVE_FILES . each do |fn |
132+ FileUtils . remove_file "#{ MSYS2_PKG } /#{ fn } " if File . exist? "#{ MSYS2_PKG } /#{ fn } "
133+ end
134+
137135 # May not be needed, but...
138136 # Note that OpenSSL may need to be ignored
139137 if PKG_NAME . end_with? ( '-3.0' )
140138 pacman_syuu
141- else
139+ else
142140 pacman_syuu
143141 end
144142
Original file line number Diff line number Diff line change @@ -14,15 +14,22 @@ class << self
1414
1515 include Common
1616
17- MSYS2_ROOT = 'C:/msys64'
1817 TEMP = ENV . fetch ( 'RUNNER_TEMP' ) { ENV . fetch ( 'RUNNER_WORKSPACE' ) { ENV [ 'TEMP' ] } }
1918 ORIG_MSYS2 = "#{ TEMP } /msys64" . gsub '\\' , '/'
2019
2120 SYNC = 'var/lib/pacman/sync'
2221 LOCAL = 'var/lib/pacman/local'
2322 CACHE = 'var/cache/pacman/pkg'
2423
24+ MSYS2_PKG = RUBY_PLATFORM . include? ( 'ucrt' ) ?
25+ "#{ MSYS2_ROOT } /ucrt64" : "#{ MSYS2_ROOT } /mingw64"
26+
2527 def update_msys2
28+
29+ SSL_3_SAVE_FILES . each do |fn |
30+ FileUtils . remove_file "#{ MSYS2_PKG } /#{ fn } " if File . exist? "#{ MSYS2_PKG } /#{ fn } "
31+ end
32+
2633 updated_keys = pacman_syuu
2734
2835 pkgs = 'autoconf-wrapper autogen automake-wrapper bison diffutils libtool m4 make patch re2c texinfo texinfo-tex compression'
You can’t perform that action at this time.
0 commit comments