diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index c6182ffdb..d64fd92ad 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Install Clang-Tidy - run: sudo apt update && sudo apt install clang-15 clang-tidy-15 libc++-15-dev llvm-dev libomp-dev make nvidia-cuda-toolkit g++ python3 && clang-tidy --version && nvcc --version && cmake --version + run: sudo apt update && sudo apt install clang-15 clang-tidy-15 libc++-15-dev llvm-dev libc++abi-dev libomp-dev make nvidia-cuda-toolkit g++ python3 && clang-tidy --version && nvcc --version && cmake --version - name: Check out code, generate compile commands uses: actions/checkout@v3 @@ -32,7 +32,7 @@ jobs: INCLUDE_FILES=$(find include -type f \( -name '*.hpp' -o -name '*.h' -o -name '*.cuh' -o -name '*.inl' \) | grep -v jit | grep -v '.inl') echo "scanning include files:" echo ${INCLUDE_FILES} | tr " " "\n" - time clang-tidy -p ./build/ -checks=-*,bugprone-* -header-filter=$(pwd)/include/.* --extra-arg "-lcudart_static" --extra-arg "-std=c++20" --extra-arg "-stdlib=libc++" ${INCLUDE_FILES} + time clang-tidy -p ./build/ -checks=-*,bugprone-* -header-filter=$(pwd)/include/.* --extra-arg "-lcudart_static" --extra-arg "-std=c++20" ${INCLUDE_FILES} continue-on-error: true - name: Scan CUDA source @@ -40,7 +40,7 @@ jobs: SOURCE_FILES=$(find src -type f \( -name '*.cu' -o -name '*.hpp' -o -name '*.h' -o -name '*.cpp' \)) echo "scanning src files:" echo ${SOURCE_FILES} | tr " " "\n" - time clang-tidy -p ./cuda-build/ -checks=-*,bugprone-* -header-filter=$(pwd)/include/.* --extra-arg "-lcudart_static" --extra-arg "-std=c++20" --extra-arg "-stdlib=libc++" ${SOURCE_FILES} -- -Iinclude/ + time clang-tidy -p ./cuda-build/ -checks=-*,bugprone-* -header-filter=$(pwd)/include/.* --extra-arg "-lcudart_static" --extra-arg "-std=c++20" ${SOURCE_FILES} -- -Iinclude/ continue-on-error: true - name: Scan Test files @@ -48,6 +48,6 @@ jobs: TEST_FILES=$(find test -type f \( -name '*.hpp' -o -name '*.h' -o -name '*.cpp' -o -name '*.cuh' -o -name '*.cu' \) ! -path 'test/tutorial/*') echo "scanning test files:" echo ${TEST_FILES} | tr " " "\n" - time clang-tidy -p ./cuda-build/ -checks=-*,bugprone-* -header-filter=$(pwd)/include/.* --extra-arg "-lcudart_static" --extra-arg "-std=c++20" --extra-arg "-stdlib=libc++" ${TEST_FILES} -- -Iinclude/ -isystem ./cuda-build/_deps/googletest-src/googletest/include -isystem ./cuda-build/_deps/json-src/include + time clang-tidy -p ./cuda-build/ -checks=-*,bugprone-* -header-filter=$(pwd)/include/.* --extra-arg "-lcudart_static" --extra-arg "-std=c++20" ${TEST_FILES} -- -Iinclude/ -isystem ./cuda-build/_deps/googletest-src/googletest/include -isystem ./cuda-build/_deps/json-src/include continue-on-error: true