summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-24 14:01:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-08-11 20:29:55 +0900
commitb0a4e2399b34701d4fc05f9543142b0c73d1fb9b (patch)
treeee4077524de700040d2c41e428d55d06102be127
parent4adb6f6969d3f58d3987708201acf4f44b870cc9 (diff)
CI: mingw: Use the official actions for msys2
Because ruby/setup-ruby is affected to test result.
-rw-r--r--.github/workflows/mingw.yml19
1 files changed, 15 insertions, 4 deletions
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
index 3e889c56c0..1c4cb533d3 100644
--- a/.github/workflows/mingw.yml
+++ b/.github/workflows/mingw.yml
@@ -65,10 +65,21 @@ jobs:
)}}
steps:
- - name: Set up Ruby & MSYS2
- uses: ruby/setup-ruby@d8d83c3960843afb664e821fed6be52f37da5267 # v1.231.0
+ - uses: msys2/setup-msys2@40677d36a502eb2cf0fb808cc9dec31bf6152638 # v2.28.0
+ id: msys2
with:
- ruby-version: '3.2'
+ msystem: UCRT64
+ update: true
+ install: >-
+ git
+ make
+ ruby
+ autoconf
+ mingw-w64-ucrt-x86_64-gcc
+ mingw-w64-ucrt-x86_64-ragel
+ mingw-w64-ucrt-x86_64-openssl
+ mingw-w64-ucrt-x86_64-libyaml
+ mingw-w64-ucrt-x86_64-libffi
- name: Set up env
id: setup-env
@@ -86,7 +97,7 @@ jobs:
Tee-Object ${env:GITHUB_ENV} -Append -Encoding utf-8
shell: pwsh # cmd.exe does not strip spaces before `|`.
env:
- MSYS2_LOCATION: ${{ env.RI_DEVKIT }}
+ MSYS2_LOCATION: ${{ steps.msys2.outputs.msys2-location }}
- name: Remove Strawberry Perl pkg-config
working-directory: