mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
update clang-format
This commit is contained in:
parent
453e65bbfe
commit
4dc3eb1048
6
.github/workflows/clangformat.yml
vendored
6
.github/workflows/clangformat.yml
vendored
@ -2,10 +2,10 @@ on: [pull_request]
|
||||
name: clang-format
|
||||
jobs:
|
||||
check-clang-format:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: install clang-format
|
||||
run: sudo apt install clang-format-11
|
||||
run: sudo apt install clang-format-14
|
||||
- uses: actions/checkout@main
|
||||
- name: fetch target ref
|
||||
run:
|
||||
@ -20,7 +20,7 @@ jobs:
|
||||
- name: run git-clang-format and Check if no changes are needed
|
||||
run:
|
||||
|
|
||||
CLANG_FORMAT=clang-format-11 git-clang-format-11 --diff FETCH_HEAD HEAD | tee git-clang-format.diff
|
||||
CLANG_FORMAT=clang-format-14 git-clang-format-14 --diff FETCH_HEAD HEAD | tee git-clang-format.diff
|
||||
cmp -s <(echo no modified files to format) git-clang-format.diff || cmp -s <(echo -n) git-clang-format.diff
|
||||
- uses: actions/upload-artifact@v1
|
||||
if: failure()
|
||||
|
Loading…
Reference in New Issue
Block a user