Use JOBS again like macos.yml

This commit is contained in:
Kazuhiro NISHIYAMA 2019-08-28 09:45:31 +09:00
parent 330c2f7597
commit 108dbb389b
No known key found for this signature in database
GPG Key ID: 262ED8DBB4222F7A

View File

@ -36,13 +36,17 @@ jobs:
run: |
chmod go-w $HOME
sudo chmod -R go-w /usr/share
- name: Set ENV
run: |
echo '##[set-env name=JOBS]'-j$((1 + $(nproc --all)))
- run: autoconf
- name: configure
run: ./configure -C --disable-install-doc
- run: make -j$((1 + $(nproc --all)))
- run: make $JOBS
- name: Tests
run: make -s TESTOPTS="-j$((1 + $(nproc --all))) -q --tty=no" ${{ matrix.test_task }}
run: make -s ${{ matrix.test_task }}
env:
TESTOPTS: "$JOBS -q --tty=no"
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
if: matrix.test_task != 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
# test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.