-
Notifications
You must be signed in to change notification settings - Fork 7
101 lines (92 loc) · 2.44 KB
/
ruby.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: CI
on:
pull_request:
paths-ignore:
- '*.md'
push:
branches-ignore:
- v1
tags-ignore:
- '*'
paths-ignore:
- '*.md'
workflow_dispatch:
jobs:
main:
name: >-
${{ matrix.os }} ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, ubuntu-20.04, macos-13, macos-12, macos-11 ]
ruby: [ ruby-head, 3.2, 3.1, '3.0', 2.7, 2.5, 2.2, jruby, truffleruby ]
exclude:
- { os: ubuntu-22.04 , ruby: 2.2 }
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Ruby Install
uses: ./
with:
ruby-version: ${{ matrix.ruby }}
apt-get: ragel
brew: ragel
- name: Info
run: |
ruby -v
echo ''
gcc --version
openssl version
echo ''
ragel --version
echo ''
bundler version
echo ''
echo "RubyGems $(gem --version)"
win32:
name: >-
${{ matrix.os }} ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
os: [ windows-2022, windows-2019 ]
ruby: [ mswin, mingw, ucrt, head, 3.2, 3.1, '3.0', 2.5, 2.4, 2.3, 2.2 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Ruby Install
uses: ./
timeout-minutes: 10
with:
ruby-version: ${{ matrix.ruby }}
mingw: _upgrade_ openssl ragel
msys2: bison
mswin: bison mingw-w64-x86_64-ragel
vcpkg: readline
- name: Info
run: |
# stderr output from OpenSSL causes failure
$ErrorActionPreference = 'Continue'
ruby -v
echo ''
gcc --version
echo ''
openssl version
echo ''
ragel --version
echo ''
if ('${{ matrix.ruby }}' -ge '2.4') {
ridk version
}
- name: update RubyGems for Ruby 2.4 & 2.5
# Included RubyGems doesn't work with required_ruby_version
if: contains('2.4 2.5', matrix.ruby)
run: gem update --system 3.3.14 --no-document
timeout-minutes: 5
- name: gem install openssl
if: |
((matrix.ruby >= '2.5') && (matrix.os == 'windows-2019'))
|| ((matrix.ruby >= '2.4') && (matrix.os >= 'windows-2022'))
run: gem install openssl -N