Skip to content

Commit 84366b8

Browse files
authored
Extract truffleruby workflow (#1035)
* Add a new GA workflow for truffleruby-head * Remove truffleruby-head from the default CI workflow
1 parent f1e25ec commit 84366b8

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
ruby-versions:
1111
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
1212
with:
13-
engine: cruby-truffleruby
13+
engine: cruby
1414
min_version: 2.7
1515
lint:
1616
runs-on: ubuntu-latest
@@ -30,8 +30,6 @@ jobs:
3030
matrix:
3131
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
3232
with_latest_reline: [true, false]
33-
exclude:
34-
- ruby: truffleruby
3533
fail-fast: false
3634
runs-on: ubuntu-latest
3735
env:
@@ -80,9 +78,6 @@ jobs:
8078
matrix:
8179
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
8280
with_latest_reline: [true, false]
83-
exclude:
84-
- ruby: truffleruby
85-
- ruby: truffleruby-head
8681
fail-fast: false
8782
env:
8883
WITH_LATEST_RELINE: ${{matrix.with_latest_reline}}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: build-with-truffleruby-head
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "30 14 * * *"
8+
9+
jobs:
10+
irb:
11+
name: rake test truffleruby-head ${{ matrix.with_latest_reline && '(latest reline)' || '' }}
12+
strategy:
13+
matrix:
14+
with_latest_reline: [true, false]
15+
fail-fast: false
16+
runs-on: ubuntu-latest
17+
env:
18+
WITH_LATEST_RELINE: ${{matrix.with_latest_reline}}
19+
timeout-minutes: 30
20+
steps:
21+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: truffleruby-head
26+
bundler-cache: true
27+
- name: Run tests
28+
run: bundle exec rake test
29+
- name: Run tests in isolation
30+
run: bundle exec rake test_in_isolation

0 commit comments

Comments
 (0)