diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-10 19:19:22 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-10 19:19:25 +0900 |
commit | 9b203959d51b597075fe8bfcc07a24845bca4876 (patch) | |
tree | 5e4965476c6f9b4e23393daadb1796e7be30e384 /.github/workflows/macos.yml | |
parent | 5e3fb0b3572d64a82ed86af15d4adca50d71fd6b (diff) | |
download | ruby-9b203959d51b597075fe8bfcc07a24845bca4876.tar.gz |
Rename workflow.yml to macos.yml
to allow having other workflows separately, and configure `name` to
simplify a tooltip label on GitHub.
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r-- | .github/workflows/macos.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000000..ad521ced49 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,42 @@ +name: macos +on: + - push + - pull_request + +jobs: + macos: + name: make test-all on mac + runs-on: macos-latest + steps: + - name: Disable Firewall + run: | + sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off + sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate + - name: Install libraries + run: | + brew update + brew install gdbm gmp libffi openssl zlib ccache autoconf automake libtool readline + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 5 + - name: Set ENV + run: | + echo '##[set-env name=CONFIGURE_TTY]no' + echo '##[set-env name=NPROC]'$(sysctl -n hw.activecpu) + echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu))) + - name: Print ENV + run: | + echo $CONFIGURE_TTY + echo $NPROC + echo $JOBS + - run: autoconf + - name: configure + run: ./configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) + - run: make $JOBS + - run: make -s test TESTOPTS="${TESTOPTS=$JOBS -q --tty=$CONFIGURE_TTY}" + - run: make -s test-all TESTOPTS="${TESTOPTS=$JOBS -q --tty=$CONFIGURE_TTY}" + - name: Ruby Spec + run: make -s test-spec MSPECOPT=-ff # not using `-j` because sometimes `mspec -j` silently dies + - name: Leaked Globals + run: make -s leaked-globals |