Skip to content

Commit 0acbf30

Browse files
committed
chore: fix clang-tidy fetch diff in workflow
1 parent 34f1fa6 commit 0acbf30

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/clang_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4141
with:
4242
lfs: true
43+
fetch-depth: 0
4344
- name: Build Paimon
4445
shell: bash
4546
env:

ci/scripts/build_paimon.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ if [[ "${enable_sanitizer}" == "true" ]]; then
3939
)
4040
fi
4141

42+
if [[ "${check_clang_tidy}" == "true" ]]; then
43+
CMAKE_ARGS+=(
44+
"-DPAIMON_LINT_GIT_TARGET_COMMIT=origin/main"
45+
)
46+
fi
47+
4248
cmake "${CMAKE_ARGS[@]}" ${source_dir}
4349
cmake --build . -- -j$(nproc)
4450
ctest --output-on-failure -j $(nproc)

0 commit comments

Comments
 (0)