mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
CI: Enable MINGW-UCRT build and test in github actions
This enables a temporary branch on ruby/setup-ruby and MSP-Greg/setup-ruby-pkgs for UCRT-capable action setup. They set correct PATH and MINGW_PACKAGE_PREFIX for UCRT, if a UCRT based ruby is used. See here for more details: https://github.com/ruby/setup-ruby/issues/193 To enable correct UCRT settings this therefore uses rubyinstaller-head as base ruby, since it is already UCRT based.
This commit is contained in:
parent
70cefcfa0f
commit
52cc54ce6f
Notes:
git
2021-09-20 00:16:01 +09:00
1 changed files with 12 additions and 6 deletions
18
.github/workflows/mingw.yml
vendored
18
.github/workflows/mingw.yml
vendored
|
@ -8,8 +8,7 @@ jobs:
|
|||
make:
|
||||
runs-on: windows-2019
|
||||
env:
|
||||
MSYSTEM: MINGW64
|
||||
MSYSTEM_PREFIX: /mingw64
|
||||
MSYSTEM: ${{ matrix.msystem }}
|
||||
MSYS2_ARCH: x86_64
|
||||
CHOST: "x86_64-w64-mingw32"
|
||||
CFLAGS: "-march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong"
|
||||
|
@ -20,7 +19,13 @@ jobs:
|
|||
GITPULLOPTIONS: --no-tags origin ${{github.ref}}
|
||||
strategy:
|
||||
matrix:
|
||||
test_task: [ "check" ] # to make job names consistent
|
||||
include:
|
||||
- msystem: "MINGW64"
|
||||
base_ruby: 2.6
|
||||
test_task: [ "check" ] # to make job names consistent
|
||||
- msystem: "UCRT64"
|
||||
base_ruby: head
|
||||
test_task: [ "check" ] # to make job names consistent
|
||||
fail-fast: false
|
||||
steps:
|
||||
- run: mkdir build
|
||||
|
@ -35,10 +40,11 @@ jobs:
|
|||
with:
|
||||
path: src
|
||||
- name: Set up Ruby & MSYS2
|
||||
uses: MSP-Greg/setup-ruby-pkgs@v1
|
||||
uses: MSP-Greg/setup-ruby-pkgs@ucrt
|
||||
with:
|
||||
ruby-version: 2.6
|
||||
mingw: _upgrade_ gmp libffi libyaml openssl ragel readline
|
||||
ruby-version: ${{ matrix.base_ruby }}
|
||||
setup-ruby-ref: MSP-Greg/ruby-setup-ruby/00-win-ucrt
|
||||
mingw: _upgrade_ gmp libffi libyaml openssl ragel readline gcc
|
||||
msys2: automake1.16 bison
|
||||
- name: where check
|
||||
run: |
|
||||
|
|
Loading…
Add table
Reference in a new issue