From 705e98309cc1d8942fb5851145bdf7b4013d67f9 Mon Sep 17 00:00:00 2001 From: James Couball Date: Sat, 30 Mar 2024 14:36:22 -0700 Subject: [PATCH] Move experimental builds to a separate workflow that only runs when pushed to master Signed-off-by: James Couball --- .github/workflows/continuous_integration.yml | 10 ----- .../experimental_continuous_integration.yml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/experimental_continuous_integration.yml diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index a3d49058..52c6c4ea 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -22,20 +22,10 @@ jobs: operating-system: [ubuntu-latest] experimental: [No] include: - - # Building against head version of Ruby is considered experimental - ruby: head - operating-system: ubuntu-latest - experimental: Yes - - # Only test with minimal Ruby version on Windows ruby: 3.0 operating-system: windows-latest - - # Since JRuby on Windows is known to not work, consider this experimental - ruby: jruby-head - operating-system: windows-latest - experimental: Yes - steps: - name: Checkout Code uses: actions/checkout@v4 diff --git a/.github/workflows/experimental_continuous_integration.yml b/.github/workflows/experimental_continuous_integration.yml new file mode 100644 index 00000000..44dc7889 --- /dev/null +++ b/.github/workflows/experimental_continuous_integration.yml @@ -0,0 +1,43 @@ +name: CI Experimental + +on: + push: + branches: [master,v1] + workflow_dispatch: + +jobs: + build: + name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }} + runs-on: ${{ matrix.operating-system }} + continue-on-error: true + env: { JAVA_OPTS: -Djdk.io.File.enableADS=true } + + strategy: + fail-fast: false + matrix: + include: + - # Building against head version of Ruby is considered experimental + ruby: head + operating-system: ubuntu-latest + experimental: Yes + + - # Since JRuby on Windows is known to not work, consider this experimental + ruby: jruby-head + operating-system: windows-latest + experimental: Yes + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + + - name: Run Build + run: bundle exec rake default + + - name: Test Gem + run: bundle exec rake test:gem