Skip to content

Commit ca38b04

Browse files
committed
ci: be less precise with our ruby version with setup-ruby
We constantly are fighting updating these minor versions because rbenv wants us to be precise. But the ruby-setup action we rely on for the Ubuntu builds has a much more restricted list of versions which are available. Keeping both as the same list means CI breaks constantly for no reason so create two different lists to try to stop us having to do busywork.
1 parent 5807a7e commit ca38b04

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ruby: [ '2.4.9', '2.5.7', '2.6.5', '2.7.0' ]
16-
os: [ ubuntu-18.04, macOS-10.14 ]
15+
ruby-mac: [ '2.4.9', '2.5.7', '2.6.5', '2.7.0' ]
16+
ruby-linux: [ '2.4', '2.5', '2.6', '2.7' ]
17+
os: [ ubuntu-18.04, macOS-latest ]
1718

1819
runs-on: ${{ matrix.os }}
1920

20-
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
21+
name: Ruby ${{ matrix.ruby-mac }} ${{ matrix.ruby-linux }} on ${{ matrix.os }}
2122
steps:
2223
- uses: actions/checkout@master
2324
- name: update submodule
@@ -34,13 +35,13 @@ jobs:
3435
if: runner.os == 'Linux'
3536
uses: actions/setup-ruby@v1
3637
with:
37-
ruby-version: ${{ matrix.ruby }}
38+
ruby-version: ${{ matrix.ruby-linux }}
3839
- name: Set up Ruby on macOS
3940
if: runner.os == 'macOS'
4041
run: |
4142
brew install rbenv
42-
rbenv install ${{ matrix.ruby }}
43-
rbenv local ${{ matrix.ruby }}
43+
rbenv install ${{ matrix.ruby-mac }}
44+
rbenv local ${{ matrix.ruby-mac }}
4445
- name: run build
4546
run: |
4647
if [ -x rbenv ]; then eval "$(rbenv init -)"; fi

0 commit comments

Comments
 (0)