Skip to content

Commit b0a4e23

Browse files
hsbtnobu
authored andcommitted
CI: mingw: Use the official actions for msys2
Because ruby/setup-ruby is affected to test result.
1 parent 4adb6f6 commit b0a4e23

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/mingw.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,21 @@ jobs:
6565
)}}
6666
6767
steps:
68-
- name: Set up Ruby & MSYS2
69-
uses: ruby/setup-ruby@d8d83c3960843afb664e821fed6be52f37da5267 # v1.231.0
68+
- uses: msys2/setup-msys2@40677d36a502eb2cf0fb808cc9dec31bf6152638 # v2.28.0
69+
id: msys2
7070
with:
71-
ruby-version: '3.2'
71+
msystem: UCRT64
72+
update: true
73+
install: >-
74+
git
75+
make
76+
ruby
77+
autoconf
78+
mingw-w64-ucrt-x86_64-gcc
79+
mingw-w64-ucrt-x86_64-ragel
80+
mingw-w64-ucrt-x86_64-openssl
81+
mingw-w64-ucrt-x86_64-libyaml
82+
mingw-w64-ucrt-x86_64-libffi
7283
7384
- name: Set up env
7485
id: setup-env
@@ -86,7 +97,7 @@ jobs:
8697
Tee-Object ${env:GITHUB_ENV} -Append -Encoding utf-8
8798
shell: pwsh # cmd.exe does not strip spaces before `|`.
8899
env:
89-
MSYS2_LOCATION: ${{ env.RI_DEVKIT }}
100+
MSYS2_LOCATION: ${{ steps.msys2.outputs.msys2-location }}
90101

91102
- name: Remove Strawberry Perl pkg-config
92103
working-directory:

0 commit comments

Comments
 (0)