Skip to content

Commit 759c987

Browse files
committed
Merge CI in a single workflow with the new include syntax
1 parent 24d7979 commit 759c987

File tree

1 file changed

+7
-58
lines changed

1 file changed

+7
-58
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ jobs:
1717
os: [ ubuntu, macos, windows ]
1818
# Use various version syntaxes here for testing
1919
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 }
2024
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+
2528
name: ${{ matrix.os }} ${{ matrix.ruby }}
2629
runs-on: ${{ matrix.os }}-latest
2730
steps:
@@ -71,60 +74,6 @@ jobs:
7174
echo ''
7275
}
7376
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-
12877
lint:
12978
runs-on: ubuntu-latest
13079
steps:

0 commit comments

Comments
 (0)