1212 - ' **.cmake'
1313 - ' run-clang-tidy.sh'
1414 - ' run-clang-format.sh'
15- - ' .github/workflows/presubmit.yml '
15+ - ' .github/workflows/** '
1616 - ' **.clang-tidy'
1717
1818permissions :
@@ -34,34 +34,56 @@ jobs:
3434 CLANG_FORMAT_LLVM_INSTALL_DIR : /opt/homebrew/opt/llvm@21
3535
3636 - uses : astral-sh/ruff-action@v3
37+
3738 check_clang_tidy :
3839 name : Check clang-tidy
3940 runs-on : macos-14
4041 steps :
4142 - uses : actions/checkout@v4
4243 - name : Install clang-tidy
43- run : brew install llvm@21 ninja lld@21
44+ run : brew install llvm@21 lld@21
4445 - name : Run clang-tidy
4546 run : ./run-clang-tidy.sh
4647 env :
4748 CLANG_TIDY_LLVM_INSTALL_DIR : /opt/homebrew/opt/llvm@21
49+
4850 check_cmake_file_lists :
4951 name : Check CMake file lists
5052 runs-on : ubuntu-22.04
5153 steps :
5254 - uses : actions/checkout@v4
5355 - name : Run test sources check
5456 run : |
55- shopt -s nullglob
56- (cd test/autoschedulers/adams2019 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
57- (cd test/autoschedulers/anderson2021 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
58- (cd test/autoschedulers/li2018 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
59- (cd test/autoschedulers/mullapudi2016 && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
60- (cd test/correctness && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
61- (cd test/error && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
62- (cd test/failing_with_issue && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
63- (cd test/fuzz && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
64- (cd test/generator && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
65- (cd test/performance && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
66- (cd test/runtime && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
67- (cd test/warning && comm -23 <(ls *.{c,cpp} | sort) <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) | tee missing_files && [ ! -s missing_files ])
57+ check_dir() {
58+ local dir="$1"
59+ (
60+ cd "$dir" &&
61+ comm -23 \
62+ <(find . -maxdepth 1 -type f \( -name '*.c' -o -name '*.cpp' \) -printf '%f\n' | sort) \
63+ <(grep -P '^\s*#?\s*[A-Za-z0-9_.]+$' CMakeLists.txt | tr -d '# ' | sort) \
64+ | tee missing_files &&
65+ [ ! -s missing_files ]
66+ )
67+ }
68+
69+ check_dir test/autoschedulers/adams2019
70+ check_dir test/autoschedulers/anderson2021
71+ check_dir test/autoschedulers/li2018
72+ check_dir test/autoschedulers/mullapudi2016
73+ check_dir test/correctness
74+ check_dir test/error
75+ check_dir test/failing_with_issue
76+ check_dir test/fuzz
77+ check_dir test/generator
78+ check_dir test/performance
79+ check_dir test/runtime
80+ check_dir test/warning
81+
82+ check_gha_workflows :
83+ name : Check GitHub Actions workflows
84+ runs-on : ubuntu-slim
85+ steps :
86+ - uses : actions/checkout@v4
87+
88+ - name : actionlint
89+ uses : raven-actions/actionlint@v2
0 commit comments