1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Check dependencies on macOS too

This commit is contained in:
Nobuyoshi Nakada 2020-10-21 11:03:12 +09:00
parent 73834b5fc9
commit 640b340583
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -2,7 +2,11 @@ name: Check Dependencies
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
update-deps: update-deps:
runs-on: ubuntu-20.04 strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]')" if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps: steps:
- name: Install libraries - name: Install libraries
@ -10,6 +14,13 @@ jobs:
set -x set -x
sudo apt-get update -q || : sudo apt-get update -q || :
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby
if: "contains(matrix.os, 'ubuntu')"
- name: Install libraries
run: |
export WAITS='5 60'
brew upgrade
brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline
if: "contains(matrix.os, 'macos')"
- name: git config - name: git config
run: | run: |
git config --global advice.detachedHead 0 git config --global advice.detachedHead 0