@@ -17,11 +17,14 @@ jobs:
17
17
os : [ ubuntu, macos, windows ]
18
18
# Use various version syntaxes here for testing
19
19
ruby : [ 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
20
+ include :
21
+ - { os: ubuntu, ruby: rubinius }
22
+ - { os: windows, ruby: mingw }
23
+ - { os: windows, ruby: mswin }
20
24
exclude :
21
- - os : windows
22
- ruby : truffleruby
23
- - os : windows
24
- ruby : truffleruby-head
25
+ - { os: windows, ruby: truffleruby }
26
+ - { os: windows, ruby: truffleruby-head }
27
+
25
28
name : ${{ matrix.os }} ${{ matrix.ruby }}
26
29
runs-on : ${{ matrix.os }}-latest
27
30
steps :
71
74
echo ''
72
75
}
73
76
74
- specials :
75
- strategy :
76
- fail-fast : false
77
- matrix :
78
- cfg :
79
- - { ruby: rubinius, os: ubuntu }
80
- - { ruby: mingw , os: windows }
81
- - { ruby: mswin , os: windows }
82
- name : ${{ matrix.cfg.os }} ${{ matrix.cfg.ruby }}
83
- runs-on : ${{ matrix.cfg.os }}-latest
84
- steps :
85
- - uses : actions/checkout@v2
86
- - uses : ./
87
- with :
88
- ruby-version : ${{ matrix.cfg.ruby }}
89
- - run : ruby -v
90
- - name : build compiler
91
- run : |
92
- ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
93
- - name : gcc and ridk version (mingw)
94
- if : startsWith(matrix.os, 'windows')
95
- run : |
96
- $abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
97
- if ($plat.Contains('mingw')) {
98
- gcc --version
99
- if ($abi -ge '2.4') {
100
- ridk version
101
- } else {
102
- echo 'ridk is unavailable'
103
- }
104
- }
105
- - name : Subprocess test
106
- run : ruby test_subprocess.rb
107
- - name : OpenSSL version
108
- run : ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION'
109
- - name : OpenSSL test
110
- run : ruby -ropen-uri -e 'puts open(%{https://rubygems.org/}) { |f| f.read(1024) }'
111
- - name : C extension test
112
- run : gem install json:2.2.0 --no-document
113
- - run : bundle --version
114
- - run : bundle install
115
- - run : bundle exec rake --version
116
- - name : where ruby, rake
117
- if : startsWith(matrix.cfg.os, 'windows')
118
- run : |
119
- $ErrorActionPreference = 'Continue'
120
- $where = 'ruby', 'rake'
121
- foreach ($e in $where) {
122
- $rslt = where.exe $e 2>&1 | Out-String
123
- if ($rslt.contains($e)) { echo $rslt.Trim() }
124
- else { echo "Can't find $e" }
125
- echo ''
126
- }
127
-
128
77
lint :
129
78
runs-on : ubuntu-latest
130
79
steps :
0 commit comments