-
Notifications
You must be signed in to change notification settings - Fork 334
66 lines (56 loc) · 1.67 KB
/
ci.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
name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby-jruby
min_version: 2.3
host:
needs: ruby-versions
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- macos-12
- macos-13
- macos-14
- windows-latest
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
include:
- { os: windows-latest , ruby: mswin } # ruby/ruby windows CI
- { os: ubuntu-latest , ruby: jruby-9.1 } # Ruby 2.3
- { os: ubuntu-latest , ruby: jruby-9.2 } # Ruby 2.5
- { os: ubuntu-latest , ruby: jruby-9.3 } # Ruby 2.7
- { os: ubuntu-latest , ruby: jruby-9.4 } # Ruby 3.1
- { os: macos-latest , ruby: truffleruby-head }
- { os: ubuntu-latest , ruby: truffleruby-head }
exclude:
- { os: macos-14, ruby: 2.3 }
- { os: macos-14, ruby: 2.4 }
- { os: macos-14, ruby: 2.5 }
- { os: windows-latest, ruby: jruby }
- { os: windows-latest, ruby: jruby-head }
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: ${{ matrix.ruby }}
apt-get: ragel
brew: ragel
# only needed for Ruby 2.3
mingw: ragel
- run: bundle install
- run: rake compile
- run: rake test
- run: rake build
- run: gem install pkg/*.gem
if: ${{ matrix.ruby != '3.2' }}