Skip to content

Commit 19d99a8

Browse files
authored
Working around Centos 8 failure. (#3030)
* Experiment using -DCMAKE_BUILD_TYPE=Debug for Centos 8. * Moving comment because the current placement seems to mess up the cmake command. * Using `echo > VAR_XXX` and `$(cat VAR_XXX)` trick to emulate using variables (actions/starter-workflows#68 (comment)).
1 parent b4b67f0 commit 19d99a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,21 @@ jobs:
592592
- name: Install dependencies
593593
run: python3 -m pip install cmake -r tests/requirements.txt --prefer-binary
594594

595+
- name: VAR_BUILD_TYPE 7
596+
if: matrix.centos == 7
597+
run: echo Release > VAR_BUILD_TYPE
598+
599+
# Using Debug to avoid segfault that appeared around 2021-06-04,
600+
# apparently when the gcc version changed from 8.3 to 8.4.
601+
- name: VAR_BUILD_TYPE 8
602+
if: matrix.centos == 8
603+
run: echo Debug > VAR_BUILD_TYPE
604+
595605
- name: Configure
596606
shell: bash
597607
run: >
598608
cmake -S . -B build
609+
-DCMAKE_BUILD_TYPE=$(cat VAR_BUILD_TYPE)
599610
-DPYBIND11_WERROR=ON
600611
-DDOWNLOAD_CATCH=ON
601612
-DDOWNLOAD_EIGEN=ON

0 commit comments

Comments
 (0)