Skip to content

jruby: Add StringIO::VERSION #257

jruby: Add StringIO::VERSION

jruby: Add StringIO::VERSION #257

Workflow file for this run

name: macos
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-11.0
ruby: [ '2.7', '3.0', '3.1', '3.2', 'debug', 'head' ]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Compile
run: bundle exec rake compile
- name: Build gem
run: bundle exec rake build
- uses: actions/upload-artifact@v3
if: >-
matrix.os == 'macos-11.0' &&
matrix.ruby == '3.2'
with:
name: gem-${{ matrix.os }}-${{ matrix.ruby }}
path: pkg/
id: upload
- name: Upload gems
if: >-
startsWith(github.ref, 'refs/tags/') &&
steps.upload.outcome == 'success'
run: |
gh release upload ${GITHUB_REF_NAME} \
pkg/*.gem
env:
GH_TOKEN: ${{ github.token }}
- name: Run test
run: bundle exec rake