diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 8b9bbf38..26de8bb9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -115,9 +115,21 @@ jobs: - name: Include MP-Core? run: | + export HAVE_MP_CORE0=`echo "0"` + export HAVE_MP_CORE1=`echo "1"` + export HAVE_MP_CORE2=`echo "1%"` + echo "HAVE_MP_CORE0=${HAVE_MP_CORE0}" + echo "HAVE_MP_CORE1=${HAVE_MP_CORE1}" + echo "HAVE_MP_CORE2=${HAVE_MP_CORE2}" + export INCLUDE_MP_CORE0=$(echo "$HAVE_MP_CORE0" | grep -o '[01]' | tail -n 1) + export INCLUDE_MP_CORE1=$(echo "$HAVE_MP_CORE1" | grep -o '[01]' | tail -n 1) + export INCLUDE_MP_CORE2=$(echo "$HAVE_MP_CORE2" | grep -o '[01]' | tail -n 1) + echo "INCLUDE_MP_CORE0=${INCLUDE_MP_CORE0}" + echo "INCLUDE_MP_CORE1=${INCLUDE_MP_CORE1}" + echo "INCLUDE_MP_CORE2=${INCLUDE_MP_CORE2}" export HAVE_MP_CORE=`$ML_CMD "fprintf('%d', have_feature('mp_core'))"` echo "HAVE_MP_CORE=${HAVE_MP_CORE}" - export INCLUDE_MP_CORE=${HAVE_MP_CORE: -1} + export INCLUDE_MP_CORE=$(echo "$HAVE_MP_CORE" | grep -o '[01]' | tail -n 1) echo "INCLUDE_MP_CORE=${INCLUDE_MP_CORE}" echo "INCLUDE_MP_CORE=${INCLUDE_MP_CORE}" >> $GITHUB_ENV