Don't fully require rubygems
from rubygems/package
to prevent some circular require warnings when using Bundler
#3326
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rubygems | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ci-${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
rubygems: | |
name: Rubygems on ${{ matrix.os.name }} (${{ matrix.ruby.name }}) | |
runs-on: ${{ matrix.os.value }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- { name: Ubuntu, value: ubuntu-22.04 } | |
- { name: macOS, value: macos-14 } | |
- { name: Windows, value: windows-2022 } | |
ruby: | |
- { name: "3.0", value: 3.0.6 } | |
- { name: "3.1", value: 3.1.4 } | |
- { name: "3.2", value: 3.2.3 } | |
- { name: "3.3", value: 3.3.0 } | |
include: | |
- ruby: { name: jruby-9.4, value: jruby-9.4.2.0 } | |
os: { name: Ubuntu, value: ubuntu-22.04 } | |
- ruby: { name: truffleruby-23, value: truffleruby-23.1.2 } | |
os: { name: Ubuntu, value: ubuntu-22.04 } | |
- os: { name: Windows, value: windows-2022 } | |
ruby: { name: mswin, value: mswin } | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- name: Setup ruby (Ubuntu/macOS) | |
uses: ruby/setup-ruby@70da3bbf44ac06db1b0547ce2acc9380a5270d1e # v1.175.0 | |
with: | |
ruby-version: ${{ matrix.ruby.value }} | |
bundler: none | |
- name: Configure bindgen | |
shell: pwsh | |
run: | | |
echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV | |
echo "BINDGEN_EXTRA_CLANG_ARGS=$((gcm clang).source -replace "bin\clang.exe","include")" >> $env:GITHUB_ENV | |
if: matrix.ruby.name == 'mswin' | |
- name: Install Dependencies | |
run: rake setup | |
- name: Run Test | |
run: rake test | |
if: "!startsWith(matrix.ruby.name, 'truffleruby') && !startsWith(matrix.ruby.name, 'jruby')" | |
- name: Run Test isolatedly | |
run: rake test:isolated | |
if: matrix.ruby.name == '3.3' && matrix.os.name != 'Windows' | |
- name: Run Test (JRuby) | |
run: JRUBY_OPTS=--debug rake test | |
if: startsWith(matrix.ruby.name, 'jruby') | |
- name: Run Test (Truffleruby) | |
run: TRUFFLERUBYOPT="--experimental-options --testing-rubygems" rake test | |
if: startsWith(matrix.ruby.name, 'truffleruby') | |
timeout-minutes: 60 |