Skip to content

Commit 349d964

Browse files
committed
Restore clang-format action
1 parent 804e8e4 commit 349d964

2 files changed

Lines changed: 2 additions & 77 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,9 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19+
- uses: DoozyX/clang-format-lint-action@v0.15
1920
with:
20-
fetch-depth: 0
21-
- name: Install clang-format
22-
run: sudo apt-get update && sudo apt-get install -y clang-format-18
23-
- name: Fetch diff refs
24-
env:
25-
BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
26-
HEAD_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
27-
run: |
28-
if [[ -n "${BASE_SHA}" ]]; then
29-
git fetch --no-tags origin "${BASE_SHA}" "${HEAD_SHA}"
30-
fi
31-
- name: Run clang-format
32-
env:
33-
BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
34-
HEAD_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
35-
run: python3 ./scripts/ci/clang_format_check.py "${BASE_SHA}" "${HEAD_SHA}"
21+
source: './app ./include ./src ./test'
3622
build-linux:
3723
strategy:
3824
matrix:

scripts/ci/clang_format_check.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)