Sha256: eada02fc53a8f95b99e501c46e68a607cc982585d1ff95d10fe8daf4a55cb981

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 KB

Contents

name: CI

on: [push, pull_request]

jobs:
  build:
    name: >-
      ${{ matrix.os }} ${{ matrix.ruby }}

    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ ubuntu-20.04, macos-11.0, windows-2019 ]
        ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0, head ]
        include:
          - { os: windows-2019, ruby: mingw }
        exclude:
          - { os: macos-11.0, ruby: 2.2 }
          - { os: macos-11.0, ruby: 2.3 }
          - { os: windows-2019, ruby: head }

    steps:
      - name: repo checkout
        uses: actions/checkout@v2

      - name: load ruby cross-compilation toolkit
        uses: MSP-Greg/setup-ruby-pkgs@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          mingw: _upgrade_

      - name:  bundle install
        shell: pwsh
        run: |
          # update RubyGems in Ruby 2.2, bundle install
          if ('${{ matrix.ruby }}' -lt '2.3') {
            gem update --system 2.7.10 --no-document
          }
          bundle config set --local path .bundle/vendor
          bundle install --jobs 4 --retry 3

      - name: compile
        timeout-minutes: 5
        run: bundle exec rake compile

      - name: test
        timeout-minutes: 5
        run: bundle exec rake test

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unf_ext-0.0.8-x86-mingw32 .github/workflows/unf_ext.yml
unf_ext-0.0.8-x64-mingw32 .github/workflows/unf_ext.yml
unf_ext-0.0.8 .github/workflows/unf_ext.yml