summaryrefslogtreecommitdiff
path: root/.github/workflows/compilers.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-12 13:14:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-12 13:46:31 +0900
commit7ac440910cb5825eb7ee57544318ffd479dac82b (patch)
tree6669d3a373ac0df015f5cd288ae233d9f9e3497d /.github/workflows/compilers.yml
parent1cdc75104de1caa048d6eace3422b36dd69e6d70 (diff)
Separate jobs conditions
Diffstat (limited to '.github/workflows/compilers.yml')
-rw-r--r--.github/workflows/compilers.yml29
1 files changed, 11 insertions, 18 deletions
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index af0be21272..cc8c6b0d63 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -88,7 +88,7 @@ jobs:
- { 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: '-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: jemalloc, value: '--with-jemalloc' }
@@ -172,33 +172,26 @@ jobs:
- run: ./autogen.sh
working-directory: src
- name: Run configure
- run: |
- if [ -n "${crosshost}" ]; then
- ../src/configure -C \
- ${default_configure} \
- ${append_configure} \
- --host="${crosshost}"
- else
- ../src/configure -C \
- ${default_configure} \
- ${append_configure} \
- --with-gcc="${default_cc} ${append_cc}"
- fi
+ run: ../src/configure -C ${default_configure} ${append_configure} --with-gcc="${default_cc} ${append_cc}"
+ if: ${{ matrix.entry.key != 'crosshost' }}
+ - name: Run cross configure
+ run: ../src/configure -C ${default_configure} ${append_configure} --host="${crosshost}"
+ if: ${{ matrix.entry.key == 'crosshost' }}
- run: $make extract-extlibs
- run: $make incs
- run: $make
- run: $make leaked-globals
- run: $make test
- run: $make install
- if: ${{ matrix.entry.name == '-O3' }}
+ if: ${{ matrix.entry.check }}
- run: /usr/local/bin/gem install --no-doc timezone tzinfo
- if: ${{ matrix.entry.name == '-O3' }}
+ if: ${{ matrix.entry.check }}
- run: $make test-tool
- if: ${{ matrix.entry.name == '-O3' }}
+ if: ${{ matrix.entry.check }}
- run: $make test-all TESTS='-- ruby -ext-'
- if: ${{ matrix.entry.name == '-O3' }}
+ if: ${{ matrix.entry.check }}
- run: $make test-spec
- if: ${{ matrix.entry.name == '-O3' }}
+ if: ${{ matrix.entry.check }}
- uses: k0kubun/action-slack@v2.0.0
with: