Skip to content

Commit bb10c03

Browse files
authored
Only build gtest_main for cling llvm=13 ci
1 parent e92dc4c commit bb10c03

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,10 @@ jobs:
392392
../llvm
393393
cmake --build . --target clang --parallel ${{ env.ncpus }}
394394
cmake --build . --target cling --parallel ${{ env.ncpus }}
395-
# Now build gtest.a and gtest_main for CppInterOp to run its tests.
396-
cmake --build . --target gtest_main --parallel ${{ env.ncpus }}
395+
if [[ "${{ matrix.clang-runtime}}" == "13" ]]; then
396+
# Now build gtest.a and gtest_main for CppInterOp to run its tests.
397+
cmake --build . --target gtest_main --parallel ${{ env.ncpus }}
398+
fi
397399
else
398400
# Apply patches
399401
llvm_vers=$(echo "${{ matrix.clang-runtime }}" | tr '[:lower:]' '[:upper:]')
@@ -466,8 +468,12 @@ jobs:
466468
..\llvm
467469
cmake --build . --config Release --target clang --parallel ${{ env.ncpus }}
468470
cmake --build . --config Release --target cling --parallel ${{ env.ncpus }}
469-
# Now build gtest.a and gtest_main for CppInterOp to run its tests.
470-
cmake --build . --config Release --target gtest_main --parallel ${{ env.ncpus }}
471+
if ( "${{ matrix.clang-runtime }}" -imatch "13" )
472+
{
473+
# cling version 1.0 with llvm 13 doesn't work on Windows, but this is here in
474+
# case someone finds a way to fix this
475+
cmake --build . --config Release --target gtest_main --parallel ${{ env.ncpus }}
476+
}
471477
}
472478
else
473479
{

0 commit comments

Comments
 (0)