From 9b203959d51b597075fe8bfcc07a24845bca4876 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 10 Aug 2019 19:19:22 +0900 Subject: Rename workflow.yml to macos.yml to allow having other workflows separately, and configure `name` to simplify a tooltip label on GitHub. --- .github/workflows/macos.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/macos.yml (limited to '.github/workflows/macos.yml') 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 -- cgit v1.2.3