Skip to content

Commit

Permalink
Merge pull request #2157 from sparklemotion/flavorjones-update-macos-…
Browse files Browse the repository at this point in the history
…tests-to-ruby3

ci: test ruby 3.0 in the github actions macos tests
  • Loading branch information
flavorjones committed Jan 18, 2021
2 parents 73700b0 + 460cd9f commit 614378c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/macos.yml
Expand Up @@ -10,22 +10,27 @@ on:
jobs:
cruby-test-system-libraries:
runs-on: macos-latest
strategy:
matrix:
ruby: ["2.7", "3.0"]
steps:
- uses: actions/checkout@v2

- name: Set ENV
run: |
echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
echo "NOKOGIRI_USE_SYSTEM_LIBRARIES=t" >> $GITHUB_ENV
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '2.7'
ruby-version: ${{ matrix.ruby }}
- run: bundle exec rake compile
- run: bundle exec rake test

cruby-test-vendored-libraries:
runs-on: macos-latest
strategy:
matrix:
ruby: ["2.7", "3.0"]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
Expand All @@ -34,13 +39,12 @@ jobs:
key: tarballs-${{ hashFiles('**/dependencies.yml') }}
restore-keys: |
tarballs-
- name: Set ENV
run: |
echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '2.7'
ruby-version: ${{ matrix.ruby }}
- run: bundle exec rake compile
- run: bundle exec rake test

0 comments on commit 614378c

Please sign in to comment.