[#164] .forgejo: Add clang-format support

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2024-11-06 15:55:26 +03:00
parent 709706da0d
commit 0e1fe62500
Signed by: achuprov
GPG key ID: 2D916FFD803B0EDD

View file

@ -27,31 +27,19 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Restore LLVM - name: Install deps
id: cache-primes-restore run: |
uses: actions/cache/restore@v4 apt update
with: apt install -y clang-format
path: |
bin/linters/clang/clang-format
key: ${{ runner.os }}-clang
- name: Run clang-format - name: Run clang-format
run: make clang run: make clang
- name: Save LLVM Cache - name: Print diff
id: cache-primes-save run: git diff HEAD
uses: actions/cache/save@v4
with:
path: |
bin/linters/clang/clang-format
key: ${{ runner.os }}-clang
# - name: Print diff - name: Check that nothing has changed
# run: git diff HEAD run: git diff-index --exit-code HEAD
# - name: Check that nothing has changed
# run: git diff-index --exit-code HEAD
tests: tests:
name: Tests name: Tests