[#164] .forgejo: Add clang-format support
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
709706da0d
commit
0e1fe62500
1 changed files with 8 additions and 20 deletions
|
@ -27,31 +27,19 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Restore LLVM
|
||||
id: cache-primes-restore
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
bin/linters/clang/clang-format
|
||||
key: ${{ runner.os }}-clang
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
apt update
|
||||
apt install -y clang-format
|
||||
|
||||
- name: Run clang-format
|
||||
run: make clang
|
||||
|
||||
- name: Save LLVM Cache
|
||||
id: cache-primes-save
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
bin/linters/clang/clang-format
|
||||
key: ${{ runner.os }}-clang
|
||||
- name: Print diff
|
||||
run: git diff HEAD
|
||||
|
||||
# - name: Print diff
|
||||
# run: git diff HEAD
|
||||
|
||||
# - name: Check that nothing has changed
|
||||
# run: git diff-index --exit-code HEAD
|
||||
- name: Check that nothing has changed
|
||||
run: git diff-index --exit-code HEAD
|
||||
|
||||
tests:
|
||||
name: Tests
|
||||
|
|
Loading…
Reference in a new issue