Skip to content

Commit d635776

Browse files
committed
Update CI versions
1 parent 0205bd1 commit d635776

File tree

3 files changed

+51
-8
lines changed

3 files changed

+51
-8
lines changed

.github/workflows/macos.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,31 @@ name: macos
33
on: [push, pull_request]
44

55
jobs:
6+
ruby-versions:
7+
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
8+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
9+
with:
10+
engine: cruby
11+
min_version: 2.7
12+
versions: '["debug"]'
13+
614
build:
15+
needs: ruby-versions
716
name: ${{ matrix.os }} ${{ matrix.ruby }}
817
runs-on: ${{ matrix.os }}
918
strategy:
1019
fail-fast: false
1120
matrix:
1221
os:
1322
- macos-12
14-
- macos-arm-oss
15-
ruby: [ '2.7', '3.0', '3.1', '3.2', 'debug', 'head' ]
23+
- macos-14
24+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1625
steps:
26+
- name: git config
27+
run: |
28+
git config --global core.autocrlf false
29+
git config --global core.eol lf
30+
git config --global advice.detachedHead 0
1731
- uses: actions/checkout@v4
1832
- name: Set up Ruby
1933
uses: ruby/setup-ruby@v1
@@ -26,8 +40,8 @@ jobs:
2640
run: bundle exec rake build
2741
- uses: actions/upload-artifact@v4
2842
if: >-
29-
matrix.os == 'macos-12' &&
30-
matrix.ruby == '3.2'
43+
matrix.os == 'macos-14' &&
44+
matrix.ruby == needs.ruby-versions.outputs.latest
3145
with:
3246
name: gem-${{ matrix.os }}-${{ matrix.ruby }}
3347
path: pkg/

.github/workflows/ubuntu.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ name: ubuntu
33
on: [push, pull_request]
44

55
jobs:
6+
ruby-versions:
7+
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
8+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
9+
with:
10+
engine: cruby
11+
min_version: 2.7
12+
versions: '["debug", "jruby-head", "truffleruby-head"]'
13+
614
build:
15+
needs: ruby-versions
716
name: ${{ matrix.os }} ${{ matrix.ruby }}
817
runs-on: ${{ matrix.os }}
918
strategy:
@@ -12,8 +21,13 @@ jobs:
1221
os:
1322
- ubuntu-22.04
1423
- ubuntu-20.04
15-
ruby: [ '2.7', '3.0', '3.1', '3.2', 'debug', 'head', 'jruby-head', 'truffleruby-head' ]
24+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1625
steps:
26+
- name: git config
27+
run: |
28+
git config --global core.autocrlf false
29+
git config --global core.eol lf
30+
git config --global advice.detachedHead 0
1731
- uses: actions/checkout@v4
1832
- name: Set up Ruby
1933
uses: ruby/setup-ruby@v1
@@ -27,7 +41,7 @@ jobs:
2741
- uses: actions/upload-artifact@v4
2842
if: >-
2943
matrix.os == 'ubuntu-22.04' &&
30-
matrix.ruby == 'jruby-head'
44+
(matrix.ruby == needs.ruby-versions.outputs.latest || matrix.ruby == 'jruby-head')
3145
with:
3246
name: gem-${{ matrix.os }}-${{ matrix.ruby }}
3347
path: pkg/

.github/workflows/windows.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,32 @@ name: windows
33
on: [push, pull_request]
44

55
jobs:
6+
ruby-versions:
7+
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
8+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
9+
with:
10+
engine: cruby
11+
min_version: 2.7
12+
versions: '["mswin", "mingw"]'
13+
614
build:
15+
needs: ruby-versions
716
name: ${{ matrix.os }} ${{ matrix.ruby }}
817
runs-on: ${{ matrix.os }}
918
strategy:
1019
fail-fast: false
1120
matrix:
1221
os:
1322
- windows-latest
14-
ruby: [ '2.7', '3.0', '3.1', '3.2', 'mswin', 'mingw' ]
23+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
24+
exclude:
25+
- ruby: head
1526
steps:
27+
- name: git config
28+
run: |
29+
git config --global core.autocrlf false
30+
git config --global core.eol lf
31+
git config --global advice.detachedHead 0
1632
- uses: actions/checkout@v4
1733
- name: Set up Ruby
1834
uses: ruby/setup-ruby@v1
@@ -21,4 +37,3 @@ jobs:
2137
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2238
- name: Run test
2339
run: bundle exec rake
24-

0 commit comments

Comments
 (0)