File tree Expand file tree Collapse file tree 4 files changed +23
-12
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +23
-12
lines changed
Original file line number Diff line number Diff line change 33
33
- name : Set up Ruby
34
34
uses : ruby/setup-ruby@v1
35
35
with :
36
- ruby-version : mingw
36
+ ruby-version : ucrt
37
37
timeout-minutes : 7
38
38
39
39
- name : Update msys2 tools 7z and Upload
@@ -52,10 +52,10 @@ jobs:
52
52
fail-fast : false
53
53
matrix :
54
54
include :
55
- - { gcc: mingw64 , ruby: mingw }
55
+ - { gcc: mingw64 , ruby: '3.0' }
56
56
- { 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 }
59
59
steps :
60
60
- name : Checkout
61
61
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ module Common
34
34
PACMAN = 'C:/msys64/usr/bin/pacman.exe'
35
35
BASH = 'C:/msys64/usr/bin/bash.exe'
36
36
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
+
37
43
def gh_api_graphql ( http , query )
38
44
body = { }
39
45
body [ "query" ] = query
Original file line number Diff line number Diff line change @@ -44,12 +44,6 @@ class << self
44
44
end
45
45
46
46
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
- ]
53
47
54
48
SSL_1_DLLS = %w[ bin/libcrypto-1_1-x64.dll bin/libssl-1_1-x64.dll ]
55
49
@@ -134,11 +128,15 @@ def install_gcc
134
128
135
129
pkgs = ( base_gcc + base_ruby ) . unshift ( '' ) . join " #{ PKG_PRE } "
136
130
131
+ SSL_3_SAVE_FILES . each do |fn |
132
+ FileUtils . remove_file "#{ MSYS2_PKG } /#{ fn } " if File . exist? "#{ MSYS2_PKG } /#{ fn } "
133
+ end
134
+
137
135
# May not be needed, but...
138
136
# Note that OpenSSL may need to be ignored
139
137
if PKG_NAME . end_with? ( '-3.0' )
140
138
pacman_syuu
141
- else
139
+ else
142
140
pacman_syuu
143
141
end
144
142
Original file line number Diff line number Diff line change @@ -14,15 +14,22 @@ class << self
14
14
15
15
include Common
16
16
17
- MSYS2_ROOT = 'C:/msys64'
18
17
TEMP = ENV . fetch ( 'RUNNER_TEMP' ) { ENV . fetch ( 'RUNNER_WORKSPACE' ) { ENV [ 'TEMP' ] } }
19
18
ORIG_MSYS2 = "#{ TEMP } /msys64" . gsub '\\' , '/'
20
19
21
20
SYNC = 'var/lib/pacman/sync'
22
21
LOCAL = 'var/lib/pacman/local'
23
22
CACHE = 'var/cache/pacman/pkg'
24
23
24
+ MSYS2_PKG = RUBY_PLATFORM . include? ( 'ucrt' ) ?
25
+ "#{ MSYS2_ROOT } /ucrt64" : "#{ MSYS2_ROOT } /mingw64"
26
+
25
27
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
+
26
33
updated_keys = pacman_syuu
27
34
28
35
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