Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak CI #3619

Merged
merged 2 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['3.0', '2.7', '2.6']
ruby-version: ['3.1', '3.0', '2.7', '2.6']
os: [ubuntu-latest]
experimental: [false]
include:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/macos-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['head', '2.7']
ruby-version: ['3.1', '3.0', '2.7']
os: [macos-latest]
experimental: [true]
include:
- ruby-version: head
os: macos-latest
experimental: true

name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/windows-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
- windows-latest
experimental: [false]
include:
- ruby-version: '3.0.2'
- ruby-version: '3.0.3'
os: windows-latest
experimental: true
experimental: false
# On Ruby 3.0, we need to use fiddle 1.0.8 or later to retrieve correct
# error code. In addition, we have to specify the path of fiddle by RUBYLIB
# because RubyInstaller loads Ruby's bundled fiddle before initializing gem.
# See also:
# * https://github.com/ruby/fiddle/issues/72
# * https://bugs.ruby-lang.org/issues/17813
# * https://github.com/oneclick/rubyinstaller2/blob/8225034c22152d8195bc0aabc42a956c79d6c712/lib/ruby_installer/build/dll_directory.rb
ruby-lib-opt: RUBYLIB=%RUNNER_TOOL_CACHE%/Ruby/3.0.2/x64/lib/ruby/gems/3.0.0/gems/fiddle-1.0.8/lib
ruby-lib-opt: RUBYLIB=%RUNNER_TOOL_CACHE%/Ruby/3.0.3/x64/lib/ruby/gems/3.0.0/gems/fiddle-1.1.0/lib

name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
Expand All @@ -37,9 +37,9 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Add Fiddle 1.0.8
if: ${{ matrix.ruby-version == '3.0.2' }}
run: gem install fiddle --version 1.0.8
- name: Add Fiddle 1.1.0
if: ${{ matrix.ruby-version == '3.0.3' }}
run: gem install fiddle --version 1.1.0
- name: Install dependencies
run: ridk exec bundle install
- name: Run tests
Expand Down