Sha256: 725fe7bbeee84675d48831fed9d5a16dad3b32632e10b88ee6fe3dfc88fbeec6

Contents?: true

Size: 1.92 KB

Versions: 34

Compression:

Stored size: 1.92 KB

Contents

name: CI
on: [push, pull_request]
jobs:
  system-libffi:
    # Run on latest MRI with explicit selection of system or builtin libffi
    strategy:
      fail-fast: false
      matrix:
        os: [ ubuntu, macos, windows ]
        extconfopts: [ --disable-system-libffi, --enable-system-libffi ]
    runs-on: ${{ matrix.os }}-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: 2.7

    - run: brew install automake libffi pkg-config
      if: matrix.os == 'macos'
    - run: ridk exec pacman --sync --refresh --needed --noconfirm  mingw-w64-x86_64-libffi
      if: matrix.os == 'windows' && matrix.extconfopts == '--enable-system-libffi'

    - run: bundle install
    - run: bundle exec rake libffi
    - run: bundle exec rake compile -- ${{ matrix.extconfopts }}
      env:
        # work around misconfiguration of libffi on MacOS with homebrew
        PKG_CONFIG_PATH: ${{ env.PKG_CONFIG_PATH }}:/usr/local/opt/libffi/lib/pkgconfig
    - run: bundle exec rake test
    - run: bundle exec rake types_conf && git --no-pager diff

  specs:
    # Run all specs on all ruby implementations
    # Use automatic libffi selection on MRI
    strategy:
      fail-fast: false
      matrix:
        os: [ ubuntu, macos, windows ]
        ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, ruby-head, truffleruby-head ]
        exclude:
        - os: windows
          ruby: truffleruby-head
        - os: windows
          ruby: 2.3 # compilation fails
    runs-on: ${{ matrix.os }}-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}

    - run: brew install automake
      if: matrix.os == 'macos'

    - run: bundle install
    - run: bundle exec rake libffi
    - run: bundle exec rake compile

    - run: bundle exec rake test

    - run: bundle exec rake bench:all
      if: matrix.ruby != 'truffleruby-head'
      env:
        ITER: 10

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
qiita_org-0.1.35 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.34 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.33 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.32 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.31 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.30 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.29 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.28 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.54.15 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.27 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.26 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
qiita_org-0.1.25 gems/ruby/2.7.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.53.79 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.53.17 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.53.3 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.53.1 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.52.121 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.52.92 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.52.79 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml
cloudsmith-api-0.52.5 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/.github/workflows/ci.yml