[#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
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