Skip to content

Commit

Permalink
CI: Combine into a shared matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Oct 12, 2021
1 parent cbfee27 commit ab89a16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 55 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/jruby.yml

This file was deleted.

14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
matrix:
ruby: [ 'head', '3.0', '2.7', '2.6' ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- { os: ubuntu-latest, ruby: jruby-head }
- { os: ubuntu-latest, ruby: jruby-9.2 }
- { os: ubuntu-latest, ruby: truffleruby }
- { os: ubuntu-latest, ruby: truffleruby-head }
runs-on: ${{ matrix.os }}
steps:
- name: git config
Expand All @@ -21,17 +26,16 @@ jobs:
git config --global core.eol lf
git config --global advice.detachedHead 0
- uses: actions/checkout@v2
- name: Set up Ruby
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
bundler-cache: true # 'bundle install' and cache
- name: Run test
run: rake
run: bundle exec rake
- id: build
run: |
rake build
bundle exec rake build
echo "::set-output name=pkg::${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}"
env:
RUNNING_OS: ${{matrix.os}}
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/truffleruby.yml

This file was deleted.

0 comments on commit ab89a16

Please sign in to comment.