Skip to content

Commit 6a45bdf

Browse files
authored
Run old rubies with Ubuntu 20 in CI (#221)
* Run old rubies with Ubuntu 20 in CI * Rename CI job for old Ubuntu
1 parent 1198345 commit 6a45bdf

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/benchmarks.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
ruby-version: ['3.1', '3.0', '2.7', '2.5.1', '2.4.3', '2.3.0',
16-
'2.1.9', '2.2.10', 'ruby-head', 'jruby-9.1.17.0',
17-
'jruby-head', 'truffleruby-22.3.0', 'truffleruby-head']
15+
ruby-version: ['3.1', '3.0', '2.7', '2.5.1', '2.4.3', 'ruby-head',
16+
'jruby-9.1.17.0', 'jruby-head', 'truffleruby-22.3.0',
17+
'truffleruby-head']
1818

1919
steps:
2020
- name: Set Share Env
@@ -30,3 +30,25 @@ jobs:
3030
run: bundle install
3131
- name: Run benchmarks
3232
run: bundle exec rake
33+
34+
rake_old:
35+
runs-on: ubuntu-20.04
36+
37+
strategy:
38+
matrix:
39+
ruby-version: ['2.3.0', '2.1.9', '2.2.10']
40+
41+
steps:
42+
- name: Set Share Env
43+
if: github.ref_name == 'main'
44+
run: |
45+
echo "SHARE=1" >> $GITHUB_ENV
46+
- uses: actions/checkout@v3
47+
- name: Set up Ruby ${{ matrix.ruby-version }}
48+
uses: ruby/setup-ruby@v1
49+
with:
50+
ruby-version: ${{ matrix.ruby-version }}
51+
- name: Install dependencies
52+
run: bundle install
53+
- name: Run benchmarks
54+
run: bundle exec rake

0 commit comments

Comments
 (0)