diff --git a/.github/workflows/native-clang-format.yml b/.github/workflows/native-clang-format.yml index dbe19969fe..51a33fdb5b 100644 --- a/.github/workflows/native-clang-format.yml +++ b/.github/workflows/native-clang-format.yml @@ -26,15 +26,10 @@ jobs: output: ' ' fileOutput: ' ' - - name: Echo change files - run: | - cat $HOME/files.txt - mv $HOME/files.txt ${{github.workspace}}/files.txt - - uses: DoozyX/clang-format-lint-action@v0.18 with: source: ./native - exclude: ./native/cocos/bindings/auto + exclude: ./native/cocos/bindings/auto ./native/cocos/base/std ./native/cocos/editor-support/spine-wasm ./native/cocos/editor-support/spine ./native/cocos/gi/light-probe/predicates.cpp ./native/cocos/gi/light-probe/tetgen.cpp ./native/cocos/gi/light-probe/tetgen.h ./native/cocos/platform/openharmony/napi ./native/tools ./native/vendor extensions: 'c,h,hpp,cpp,cxx' style: file inplace: true diff --git a/native/.clang-format-ignore b/native/.clang-format-ignore index b20d7bfb17..3d627d933a 100644 --- a/native/.clang-format-ignore +++ b/native/.clang-format-ignore @@ -1,5 +1,11 @@ # ignore third_party code from clang-format checks ./cocos/bindings/auto/* +./cocos/base/std/** +./cocos/editor-support/spine-wasm/** +./cocos/editor-support/spine/** ./cocos/gi/light-probe/predicates.cpp ./cocos/gi/light-probe/tetgen.cpp ./cocos/gi/light-probe/tetgen.h +./cocos/platform/openharmony/napi/** +./tools/** +./vendor/**