Skip to content

Commit

Permalink
Attempting to install llvm lib c++ without needing to declare compile…
Browse files Browse the repository at this point in the history
…r arg.
  • Loading branch information
mwaxmonsky committed Apr 30, 2024
1 parent f541300 commit fee0954
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,22 +32,22 @@ 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
run: |
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
run: |
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

0 comments on commit fee0954

Please sign in to comment.