1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Separate jobs conditions

This commit is contained in:
Nobuyoshi Nakada 2021-08-12 13:14:24 +09:00
parent 1cdc75104d
commit 7ac440910c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -88,7 +88,7 @@ jobs:
- { key: CXXFLAGS, name: c++2a, value: '-std=c++2a -Werror=pedantic -pedantic-errors -Wno-c++11-long-long' } - { key: CXXFLAGS, name: c++2a, value: '-std=c++2a -Werror=pedantic -pedantic-errors -Wno-c++11-long-long' }
- { key: optflags, name: '-O0', value: '-O0 -march=x86-64 -mtune=generic' } - { key: optflags, name: '-O0', value: '-O0 -march=x86-64 -mtune=generic' }
# - { key: optflags, name: '-O3', value: '-O3 -march=x86-64 -mtune=generic' } # - { key: optflags, name: '-O3', value: '-O3 -march=x86-64 -mtune=generic', check: true }
- { key: append_configure, name: gmp, value: '--with-gmp' } - { key: append_configure, name: gmp, value: '--with-gmp' }
- { key: append_configure, name: jemalloc, value: '--with-jemalloc' } - { key: append_configure, name: jemalloc, value: '--with-jemalloc' }
@ -172,33 +172,26 @@ jobs:
- run: ./autogen.sh - run: ./autogen.sh
working-directory: src working-directory: src
- name: Run configure - name: Run configure
run: | run: ../src/configure -C ${default_configure} ${append_configure} --with-gcc="${default_cc} ${append_cc}"
if [ -n "${crosshost}" ]; then if: ${{ matrix.entry.key != 'crosshost' }}
../src/configure -C \ - name: Run cross configure
${default_configure} \ run: ../src/configure -C ${default_configure} ${append_configure} --host="${crosshost}"
${append_configure} \ if: ${{ matrix.entry.key == 'crosshost' }}
--host="${crosshost}"
else
../src/configure -C \
${default_configure} \
${append_configure} \
--with-gcc="${default_cc} ${append_cc}"
fi
- run: $make extract-extlibs - run: $make extract-extlibs
- run: $make incs - run: $make incs
- run: $make - run: $make
- run: $make leaked-globals - run: $make leaked-globals
- run: $make test - run: $make test
- run: $make install - run: $make install
if: ${{ matrix.entry.name == '-O3' }} if: ${{ matrix.entry.check }}
- run: /usr/local/bin/gem install --no-doc timezone tzinfo - run: /usr/local/bin/gem install --no-doc timezone tzinfo
if: ${{ matrix.entry.name == '-O3' }} if: ${{ matrix.entry.check }}
- run: $make test-tool - run: $make test-tool
if: ${{ matrix.entry.name == '-O3' }} if: ${{ matrix.entry.check }}
- run: $make test-all TESTS='-- ruby -ext-' - run: $make test-all TESTS='-- ruby -ext-'
if: ${{ matrix.entry.name == '-O3' }} if: ${{ matrix.entry.check }}
- run: $make test-spec - run: $make test-spec
if: ${{ matrix.entry.name == '-O3' }} if: ${{ matrix.entry.check }}
- uses: k0kubun/action-slack@v2.0.0 - uses: k0kubun/action-slack@v2.0.0
with: with: