File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -1087,6 +1087,40 @@ jobs:
10871087 export
10881088 echo $GITHUB_ENV
10891089
1090+ - name : Rebuild CppInterOp in release mode
1091+ if : ${{ runner.os != 'windows' && (matrix.coverage == true) && failure() }}
1092+ run : |
1093+ cling_on=$(echo "${{ matrix.cling }}" | tr '[:lower:]' '[:upper:]')
1094+
1095+ # Build CppInterOp next to cling and llvm-project.
1096+ cd build
1097+ rm -rf ./*
1098+ cling_on=$(echo "${{ matrix.cling }}" | tr '[:lower:]' '[:upper:]')
1099+ if [[ "${cling_on}" == "ON" ]]; then
1100+ cmake -DCMAKE_BUILD_TYPE=Debug \
1101+ -DUSE_CLING=ON \
1102+ -DUSE_REPL=OFF \
1103+ -DCling_DIR=$LLVM_BUILD_DIR/tools/cling \
1104+ -DLLVM_DIR=$LLVM_BUILD_DIR/lib/cmake/llvm \
1105+ -DClang_DIR=$LLVM_BUILD_DIR/lib/cmake/clang \
1106+ -DBUILD_SHARED_LIBS=ON \
1107+ -DCODE_COVERAGE=1 \
1108+ -DCMAKE_INSTALL_PREFIX=$CPPINTEROP_DIR \
1109+ ../
1110+ else
1111+ cmake -DCMAKE_BUILD_TYPE=Release \
1112+ -DUSE_CLING=OFF \
1113+ -DUSE_REPL=ON \
1114+ -DLLVM_DIR=$LLVM_BUILD_DIR/lib/cmake/llvm \
1115+ -DClang_DIR=$LLVM_BUILD_DIR/lib/cmake/clang \
1116+ -DBUILD_SHARED_LIBS=ON \
1117+ -DCODE_COVERAGE=0 \
1118+ -DCMAKE_INSTALL_PREFIX=$CPPINTEROP_DIR \
1119+ ../
1120+ fi
1121+ cmake --build . --parallel ${{ env.ncpus }}
1122+ cd ..
1123+
10901124 - name : Setup tmate session
10911125 if : ${{ failure() && runner.debug }}
10921126 uses : mxschmitt/action-tmate@v3
You can’t perform that action at this time.
0 commit comments