Skip to content

Commit

Permalink
Update logic a bit to match tj-actions documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Oct 8, 2024
1 parent 01ecbcb commit 0428b49
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,14 @@ jobs:
- name: Clang-tidy validation
# NOTE: clang-tidy crashes on CodegenDataModel_Write due to Nullable/std::optional check.
# See https://github.com/llvm/llvm-project/issues/97426
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "${{ steps.changed-files.outputs.all}}" >out/changed_files.txt
touch out/changed_files.txt
for file in ${ALL_CHANGED_FILES}; do
echo "$file changed and will be considered for tidy"
echo "$file" >>out/changed_files.txt
done
./scripts/run_in_build_env.sh \
"./scripts/run-clang-tidy-on-compile-commands.py \
Expand Down Expand Up @@ -438,7 +444,11 @@ jobs:
# NOTE: clang-tidy crashes on CodegenDataModel_Write due to Nullable/std::optional check.
# See https://github.com/llvm/llvm-project/issues/97426
run: |
echo "${{ steps.changed-files.outputs.all}}" >out/changed_files.txt
touch out/changed_files.txt
for file in ${ALL_CHANGED_FILES}; do
echo "$file changed and will be considered for tidy"
echo "$file" >>out/changed_files.txt
done
./scripts/run_in_build_env.sh \
"./scripts/run-clang-tidy-on-compile-commands.py \
Expand Down

0 comments on commit 0428b49

Please sign in to comment.