.github: use GNUMAKEFLAGS instead of JOBS
A bit readable to me. See also https://github.com/ruby/ruby/pull/4880
This commit is contained in:
parent
92ec010595
commit
748688a63d
Notes:
git
2021-10-26 09:06:11 +09:00
6
.github/workflows/bundled_gems.yml
vendored
6
.github/workflows/bundled_gems.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
- name: Set ENV
|
||||
run: |
|
||||
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@ -42,12 +42,12 @@ jobs:
|
||||
run: |
|
||||
./autogen.sh
|
||||
./configure -C --disable-install-doc
|
||||
make $JOBS
|
||||
make
|
||||
if: ${{ steps.diff.outcome == 'failure' }}
|
||||
|
||||
- name: Test bundled gems
|
||||
run: |
|
||||
make $JOBS -s test-bundled-gems
|
||||
make -s test-bundled-gems
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
RUBY_TESTOPTS: "-q --tty=no"
|
||||
|
2
.github/workflows/compilers.yml
vendored
2
.github/workflows/compilers.yml
vendored
@ -200,7 +200,7 @@ jobs:
|
||||
- run: make test
|
||||
- run: make install
|
||||
if: ${{ matrix.entry.check }}
|
||||
- run: /usr/local/bin/gem install --no-doc timezone tzinfo
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.entry.check }}
|
||||
- run: make test-tool
|
||||
if: ${{ matrix.entry.check }}
|
||||
|
8
.github/workflows/macos.yml
vendored
8
.github/workflows/macos.yml
vendored
@ -27,18 +27,18 @@ jobs:
|
||||
working-directory: src
|
||||
- name: Set ENV
|
||||
run: |
|
||||
echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
|
||||
echo "GNUMAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
|
||||
- run: ./autogen.sh
|
||||
working-directory: src
|
||||
- name: Run configure
|
||||
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
|
||||
- run: make $JOBS incs
|
||||
- run: make $JOBS
|
||||
- run: make incs
|
||||
- run: make
|
||||
- run: make leaked-globals
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make $JOBS -s ${{ matrix.test_task }}
|
||||
- run: make -s ${{ matrix.test_task }}
|
||||
timeout-minutes: ${{ matrix.test_task == 'check' && 15 || 40 }}
|
||||
env:
|
||||
RUBY_TESTOPTS: "-q --tty=no"
|
||||
|
14
.github/workflows/mjit.yml
vendored
14
.github/workflows/mjit.yml
vendored
@ -34,29 +34,29 @@ jobs:
|
||||
sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || :
|
||||
- name: Set ENV
|
||||
run: |
|
||||
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
- run: ./autogen.sh
|
||||
working-directory: src
|
||||
- name: Run configure
|
||||
run: ../src/configure -C --disable-install-doc cppflags=-DVM_CHECK_MODE
|
||||
- run: make $JOBS incs
|
||||
- run: make $JOBS
|
||||
- run: sudo make $JOBS -s install
|
||||
- run: make incs
|
||||
- run: make
|
||||
- run: sudo make -s install
|
||||
- run: sudo apt-get install gdb # used by test / test-all failure
|
||||
- name: Run test
|
||||
run: |
|
||||
ulimit -c unlimited
|
||||
make $JOBS -s test RUN_OPTS="$RUN_OPTS"
|
||||
make -s test RUN_OPTS="$RUN_OPTS"
|
||||
timeout-minutes: 60
|
||||
- name: Run test-all
|
||||
run: |
|
||||
ulimit -c unlimited
|
||||
make $JOBS -s test-all RUN_OPTS="$RUN_OPTS"
|
||||
make -s test-all RUN_OPTS="$RUN_OPTS"
|
||||
timeout-minutes: 60
|
||||
- name: Run test-spec
|
||||
run: |
|
||||
ulimit -c unlimited
|
||||
make $JOBS -s test-spec RUN_OPTS="$RUN_OPTS"
|
||||
make -s test-spec RUN_OPTS="$RUN_OPTS"
|
||||
timeout-minutes: 60
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
with:
|
||||
|
8
.github/workflows/ubuntu.yml
vendored
8
.github/workflows/ubuntu.yml
vendored
@ -40,13 +40,13 @@ jobs:
|
||||
sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || :
|
||||
- name: Set ENV
|
||||
run: |
|
||||
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
- run: ./autogen.sh
|
||||
working-directory: src
|
||||
- name: Run configure
|
||||
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
|
||||
- run: make $JOBS incs
|
||||
- run: make $JOBS
|
||||
- run: make incs
|
||||
- run: make
|
||||
- run: make leaked-globals
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
@ -55,7 +55,7 @@ jobs:
|
||||
run: |
|
||||
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make $JOBS -s ${{ matrix.test_task }}
|
||||
- run: make -s ${{ matrix.test_task }}
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
RUBY_TESTOPTS: "-q --tty=no"
|
||||
|
8
.github/workflows/yjit-macos.yml
vendored
8
.github/workflows/yjit-macos.yml
vendored
@ -34,18 +34,18 @@ jobs:
|
||||
working-directory: src
|
||||
- name: Set ENV
|
||||
run: |
|
||||
echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
|
||||
echo "GNUMAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
|
||||
- run: ./autogen.sh
|
||||
working-directory: src
|
||||
- name: Run configure
|
||||
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
|
||||
- run: make $JOBS incs
|
||||
- run: make $JOBS
|
||||
- run: make incs
|
||||
- run: make
|
||||
- run: make leaked-globals
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make $JOBS -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
|
||||
- run: make -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
RUBY_TESTOPTS: "-q --tty=no"
|
||||
|
8
.github/workflows/yjit-ubuntu.yml
vendored
8
.github/workflows/yjit-ubuntu.yml
vendored
@ -52,13 +52,13 @@ jobs:
|
||||
sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || :
|
||||
- name: Set ENV
|
||||
run: |
|
||||
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
||||
- run: ./autogen.sh
|
||||
working-directory: src
|
||||
- name: Run configure
|
||||
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
|
||||
- run: make $JOBS incs
|
||||
- run: make $JOBS
|
||||
- run: make incs
|
||||
- run: make
|
||||
- run: make leaked-globals
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
@ -70,7 +70,7 @@ jobs:
|
||||
- name: Enable YJIT through ENV
|
||||
run: echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
|
||||
if: ${{ matrix.yjit_enable_env }}
|
||||
- run: make $JOBS -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
|
||||
- run: make -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS"
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
RUBY_TESTOPTS: "-q --tty=no"
|
||||
|
Loading…
x
Reference in New Issue
Block a user