[#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
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue