From 19d99a87fedc7272ec48bd90e91a00eff8e57b68 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 18 Jun 2021 01:35:36 -0700 Subject: [PATCH] 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 (https://github.com/actions/starter-workflows/issues/68#issuecomment-524937002). --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de7aeeb00b..2ed1da5c5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -592,10 +592,21 @@ jobs: - name: Install dependencies run: python3 -m pip install cmake -r tests/requirements.txt --prefer-binary + - name: VAR_BUILD_TYPE 7 + if: matrix.centos == 7 + run: echo Release > VAR_BUILD_TYPE + + # Using Debug to avoid segfault that appeared around 2021-06-04, + # apparently when the gcc version changed from 8.3 to 8.4. + - name: VAR_BUILD_TYPE 8 + if: matrix.centos == 8 + run: echo Debug > VAR_BUILD_TYPE + - name: Configure shell: bash run: > cmake -S . -B build + -DCMAKE_BUILD_TYPE=$(cat VAR_BUILD_TYPE) -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON