Skip to content

Commit

Permalink
Extract truffleruby workflow (#1035)
Browse files Browse the repository at this point in the history
* Add a new GA workflow for truffleruby-head

* Remove truffleruby-head from the default CI workflow
  • Loading branch information
st0012 authored Nov 22, 2024
1 parent f1e25ec commit 84366b8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby-truffleruby
engine: cruby
min_version: 2.7
lint:
runs-on: ubuntu-latest
Expand All @@ -30,8 +30,6 @@ jobs:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
with_latest_reline: [true, false]
exclude:
- ruby: truffleruby
fail-fast: false
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -80,9 +78,6 @@ jobs:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
with_latest_reline: [true, false]
exclude:
- ruby: truffleruby
- ruby: truffleruby-head
fail-fast: false
env:
WITH_LATEST_RELINE: ${{matrix.with_latest_reline}}
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/truffle-ruby-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build-with-truffleruby-head

on:
push:
pull_request:
schedule:
- cron: "30 14 * * *"

jobs:
irb:
name: rake test truffleruby-head ${{ matrix.with_latest_reline && '(latest reline)' || '' }}
strategy:
matrix:
with_latest_reline: [true, false]
fail-fast: false
runs-on: ubuntu-latest
env:
WITH_LATEST_RELINE: ${{matrix.with_latest_reline}}
timeout-minutes: 30
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: truffleruby-head
bundler-cache: true
- name: Run tests
run: bundle exec rake test
- name: Run tests in isolation
run: bundle exec rake test_in_isolation

0 comments on commit 84366b8

Please sign in to comment.