1
0
Fork 0
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:
Lars Kanis 2021-06-23 10:17:52 +02:00 committed by Nobuyoshi Nakada
parent 70cefcfa0f
commit 52cc54ce6f
Notes: git 2021-09-20 00:16:01 +09:00

View file

@ -8,8 +8,7 @@ jobs:
make: make:
runs-on: windows-2019 runs-on: windows-2019
env: env:
MSYSTEM: MINGW64 MSYSTEM: ${{ matrix.msystem }}
MSYSTEM_PREFIX: /mingw64
MSYS2_ARCH: x86_64 MSYS2_ARCH: x86_64
CHOST: "x86_64-w64-mingw32" CHOST: "x86_64-w64-mingw32"
CFLAGS: "-march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong" CFLAGS: "-march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong"
@ -20,7 +19,13 @@ jobs:
GITPULLOPTIONS: --no-tags origin ${{github.ref}} GITPULLOPTIONS: --no-tags origin ${{github.ref}}
strategy: strategy:
matrix: 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 fail-fast: false
steps: steps:
- run: mkdir build - run: mkdir build
@ -35,10 +40,11 @@ jobs:
with: with:
path: src path: src
- name: Set up Ruby & MSYS2 - name: Set up Ruby & MSYS2
uses: MSP-Greg/setup-ruby-pkgs@v1 uses: MSP-Greg/setup-ruby-pkgs@ucrt
with: with:
ruby-version: 2.6 ruby-version: ${{ matrix.base_ruby }}
mingw: _upgrade_ gmp libffi libyaml openssl ragel readline setup-ruby-ref: MSP-Greg/ruby-setup-ruby/00-win-ucrt
mingw: _upgrade_ gmp libffi libyaml openssl ragel readline gcc
msys2: automake1.16 bison msys2: automake1.16 bison
- name: where check - name: where check
run: | run: |