Skip to content

Commit

Permalink
Speed up ci by removing running CppInterOp tests and Valgrind check C…
Browse files Browse the repository at this point in the history
…ppInterOp (#82)
  • Loading branch information
mcbarton authored May 28, 2024
1 parent b1628f6 commit 4e34223
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ jobs:
-DClang_DIR=$LLVM_BUILD_DIR/lib/cmake/clang \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=$CPPINTEROP_DIR \
-DCPPINTEROP_ENABLE_TESTING=OFF \
../
else
cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
Expand All @@ -518,15 +519,12 @@ jobs:
-DClang_DIR=$LLVM_BUILD_DIR/lib/cmake/clang \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=$CPPINTEROP_DIR \
-DCPPINTEROP_ENABLE_TESTING=OFF \
../
fi
os="${{ matrix.os }}"
cmake --build . --target check-cppinterop --parallel ${{ env.ncpus }}
cmake --build . --parallel ${{ env.ncpus }}
cppyy_on=$(echo "${{ matrix.cppyy }}" | tr '[:lower:]' '[:upper:]')
if [[ ("${cppyy_on}" != "ON") && ("${os}" == "ubuntu"*) ]]; then
# TODO: Remove "|| true" when fix memory issues in LLVM/Clang 17
valgrind --track-origins=yes --error-exitcode=1 unittests/CppInterOp/CppInterOpTests 2>&1 >/dev/null || true
fi
cd ../..
# We need CB_PYTHON_DIR later
echo "CB_PYTHON_DIR=$CB_PYTHON_DIR" >> $GITHUB_ENV
Expand Down Expand Up @@ -593,6 +591,7 @@ jobs:
-DUSE_REPL=OFF `
-DCling_DIR="$env:LLVM_BUILD_DIR\tools\cling" `
-DLLVM_DIR="$env:LLVM_BUILD_DIR" `
-DCPPINTEROP_ENABLE_TESTING=OFF `
-DClang_DIR="$env:LLVM_BUILD_DIR" -DCMAKE_INSTALL_PREFIX="$env:CPPINTEROP_DIR" ..\
}
else
Expand All @@ -601,9 +600,10 @@ jobs:
-DUSE_CLING=OFF `
-DUSE_REPL=ON `
-DLLVM_DIR="$env:LLVM_BUILD_DIR\lib\cmake\llvm" `
-DCPPINTEROP_ENABLE_TESTING=OFF `
-DClang_DIR="$env:LLVM_BUILD_DIR\lib\cmake\clang" -DCMAKE_INSTALL_PREFIX="$env:CPPINTEROP_DIR" ..\
}
cmake --build . --config ${{ env.BUILD_TYPE }} --target check-cppinterop --parallel ${{ env.ncpus }}
cmake --build . --parallel ${{ env.ncpus }}
cd ..\..
- name: Build and Install cppyy-backend on Unix Systems
Expand Down

0 comments on commit 4e34223

Please sign in to comment.