summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-30 13:53:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-30 17:15:57 +0900
commit83a744dd8c0d6e769258b734b9f6861a22eeb554 (patch)
tree8a86267e0a0b011fde955bf84f87bb7010cd9e16 /.github
parent51070ee5c4e83a4faa0feb72f08d1d9fef18b016 (diff)
Unify configure steps
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/compilers.yml8
1 files changed, 3 insertions, 5 deletions
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index 2819a049bb..0be749b36b 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -186,11 +186,9 @@ jobs:
- run: ./autogen.sh
working-directory: src
- name: Run configure
- 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: >
+ ../src/configure -C ${default_configure} ${append_configure}
+ ${{ matrix.entry.key == 'crosshost' && '--host="${crosshost}"' || '--with-gcc="${default_cc} ${append_cc}"' }}
- run: $make extract-extlibs
- run: $make incs
- run: $make