2019-08-10 06:19:22 -04:00
|
|
|
name: macos
|
2019-08-09 20:34:13 -04:00
|
|
|
on:
|
2019-08-10 06:28:07 -04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2019-08-10 07:25:58 -04:00
|
|
|
branches:
|
2019-08-10 06:29:39 -04:00
|
|
|
- '*'
|
2019-08-08 11:28:49 -04:00
|
|
|
jobs:
|
2019-08-10 06:38:27 -04:00
|
|
|
latest:
|
2019-08-08 11:28:49 -04:00
|
|
|
runs-on: macos-latest
|
2019-08-10 17:26:17 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-08-11 06:33:03 -04:00
|
|
|
test_task: [ "check", "test-bundler", "test-bundled-gems" ]
|
2019-08-08 11:28:49 -04:00
|
|
|
steps:
|
|
|
|
- name: Disable Firewall
|
|
|
|
run: |
|
|
|
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
|
|
|
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
|
|
|
|
- name: Install libraries
|
|
|
|
run: |
|
2019-08-12 04:55:57 -04:00
|
|
|
brew update
|
2019-08-12 04:46:11 -04:00
|
|
|
brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline
|
2019-08-12 01:30:42 -04:00
|
|
|
- name: Checkout # not using actions/checkout because it's unstable.
|
2019-08-12 01:35:49 -04:00
|
|
|
run: git clone --depth=50 https://github.com/ruby/ruby .
|
2019-08-08 11:28:49 -04:00
|
|
|
- name: Set ENV
|
|
|
|
run: |
|
|
|
|
echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu)))
|
|
|
|
- run: autoconf
|
|
|
|
- name: configure
|
2019-08-12 03:36:56 -04:00
|
|
|
run: ./configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
|
2019-08-08 11:28:49 -04:00
|
|
|
- run: make $JOBS
|
2019-08-11 06:33:03 -04:00
|
|
|
- name: make check/test-bundler/test-bundled-gems
|
2019-08-10 17:26:17 -04:00
|
|
|
run: make -s ${{ matrix.test_task }}
|
|
|
|
env:
|
|
|
|
TESTOPTS: "$JOBS -q --tty=no"
|
|
|
|
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
2019-08-08 16:29:02 -04:00
|
|
|
- name: Leaked Globals
|
|
|
|
run: make -s leaked-globals
|