Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: switch to the ruby/setup-ruby action #2162

Merged
merged 1 commit into from
Jan 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 9 additions & 31 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,22 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-


- name: Set ENV
run: |
echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
echo "NOKOGIRI_USE_SYSTEM_LIBRARIES=t" >> $GITHUB_ENV
- name: Install dependencies
run: |
gem install bundler
bundle config --local path vendor/bundle
bundle config jobs $((1 + $(sysctl -n hw.activecpu)))
bundle install
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '2.7'
- run: bundle exec rake compile
- run: bundle exec rake test

cruby-test-vendored-libraries:
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: actions/cache@v2
with:
path: ports/archives
Expand All @@ -58,11 +38,9 @@ jobs:
- name: Set ENV
run: |
echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
- name: Install dependencies
run: |
gem install bundler
bundle config --local path vendor/bundle
bundle config jobs $((1 + $(sysctl -n hw.activecpu)))
bundle install
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '2.7'
- run: bundle exec rake compile
- run: bundle exec rake test